Skip to content

Commit

Permalink
Update META.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xixu-me committed Oct 24, 2024
1 parent b5194bb commit 903b57f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions META.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ const proxyGroupDefaults = {
};

const serviceProxyGroupProxies = [
"STATIC",
"PROXY",
"DIRECT",
...locations.map(({ name }) => name),
"STATIC",
];

const locationPolicyProxyGroupDefaults = {
Expand Down Expand Up @@ -350,11 +350,18 @@ function generateLocationSelectProxyGroups() {
}

const proxyGroups = [
{
...proxyGroupDefaults,
name: "STATIC",
type: "select",
"include-all": true,
icon: `${BASE_ICON_SET_URL}Static.png`,
},
{
...proxyGroupDefaults,
name: "PROXY",
type: "select",
proxies: [...locations.map(({ name }) => name), "STATIC"],
proxies: ["STATIC", ...locations.map(({ name }) => name)],
icon: `${BASE_ICON_SET_URL}Proxy.png`,
},
...generateServiceProxyGroups(services, proxyGroupDefaults),
Expand Down Expand Up @@ -410,13 +417,6 @@ const proxyGroups = [
}
),
...generateLocationSelectProxyGroups(),
{
...proxyGroupDefaults,
name: "STATIC",
type: "select",
"include-all": true,
icon: `${BASE_ICON_SET_URL}Static.png`,
},
];

// Routing Rules
Expand Down

0 comments on commit 903b57f

Please sign in to comment.