Skip to content

Commit cccc9a5

Browse files
committed
feat: Add '⚡ 自动选择' to the beginning of proxyList and tagList
1 parent 68bff0c commit cccc9a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ClashConfigBuilder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class ClashConfigBuilder {
5252
interval: 300,
5353
lazy: false
5454
});
55-
proxyList.push('DIRECT', 'REJECT');
55+
proxyList.unshift('DIRECT', 'REJECT', '⚡ 自动选择');
5656
SELECTORS_LIST.forEach(selector => {
5757
if (!this.config['proxy-groups'].some(g => g.name === selector)) {
5858
this.config['proxy-groups'].push({

src/SingboxConfigBuilder.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export class ConfigBuilder {
4848
this.config.outbounds.push({
4949
type: "urltest",
5050
tag: "⚡ 自动选择",
51-
outbounds: tagList
51+
outbounds: DeepCopy(tagList),
5252
});
53-
tagList.push('DIRECT', 'REJECT');
53+
tagList.unshift('DIRECT', 'REJECT', '⚡ 自动选择');
5454
SELECTORS_LIST.forEach(selector => {
5555
this.config.outbounds.push({
5656
type: "selector",

0 commit comments

Comments
 (0)