diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index db29d89e..0b93346b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -80,4 +80,4 @@ jobs: uses: cloudflare/wrangler-action@2.0.0 with: apiToken: ${{ secrets.CF_API_TOKEN }} - command: deploy \ No newline at end of file + command: deploy diff --git a/src/ClashConfigBuilder.js b/src/ClashConfigBuilder.js index 67036b05..610ba06f 100644 --- a/src/ClashConfigBuilder.js +++ b/src/ClashConfigBuilder.js @@ -33,6 +33,15 @@ export class ClashConfigBuilder extends BaseConfigBuilder { } const proxyList = this.config.proxies.map(proxy => proxy.name); + + const chainProxies = this.config.proxies.map(proxy => ({ + ...proxy, + name: proxy.name + '-chain', + 'dialer-proxy': 'πŸ”— 中转站' + })); + + this.config.proxies.unshift(...chainProxies); + const chainProxyList = chainProxies.map(proxy => proxy.name); this.config['proxy-groups'].push({ name: '⚑ θ‡ͺεŠ¨ι€‰ζ‹©', @@ -57,7 +66,7 @@ export class ClashConfigBuilder extends BaseConfigBuilder { this.config['proxy-groups'].unshift({ type: "select", name: outbound, - proxies: proxyList + proxies: [...proxyList, 'πŸ”“ ι“ΎεΌθ½εœ°'] }); } }); @@ -77,6 +86,18 @@ export class ClashConfigBuilder extends BaseConfigBuilder { name: "🐟 漏网之鱼", proxies: ['πŸš€ θŠ‚η‚Ήι€‰ζ‹©', ...proxyList] }); + + this.config['proxy-groups'].push({ + type: "select", + name: "πŸ”“ ι“ΎεΌθ½εœ°", + proxies: [...chainProxyList] + }); + + this.config['proxy-groups'].push({ + type: "select", + name: "πŸ”— 中转站", + proxies: [...proxyList] + }); } formatConfig() { const rules = generateRules(this.selectedRules, this.customRules, this.pin); diff --git a/src/SingboxConfigBuilder.js b/src/SingboxConfigBuilder.js index a4f2ce55..2d545633 100644 --- a/src/SingboxConfigBuilder.js +++ b/src/SingboxConfigBuilder.js @@ -29,7 +29,7 @@ export class ConfigBuilder extends BaseConfigBuilder { } const proxyList = this.config.outbounds.filter(outbound => outbound?.server != undefined).map(outbound => outbound.tag); - + this.config.outbounds.unshift({ type: "urltest", tag: "⚑ θ‡ͺεŠ¨ι€‰ζ‹©",