Skip to content

Commit 724e022

Browse files
committed
feat: 新增 cn_additional 直连规则集,Microsoft、Apple 策略组增加直连选项 #6
1 parent ed793c3 commit 724e022

5 files changed

Lines changed: 25 additions & 0 deletions

File tree

Script/Script.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ const baseRuleProviders = {
183183
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/geolocation-cn.mrs',
184184
path: './ruleset/geolocation-cn.mrs',
185185
},
186+
cn_additional: {
187+
...ruleProviderCommonDomain,
188+
...ruleProviderFormatMrs,
189+
url: 'https://static-file-global.353355.xyz/rules/cn-additional-list.mrs',
190+
path: './ruleset/cn-additional-list.mrs',
191+
},
186192
cn: {
187193
...ruleProviderCommonDomain,
188194
...ruleProviderFormatMrs,
@@ -589,6 +595,7 @@ function main(config) {
589595

590596
// 兜底规则
591597
'RULE-SET,gfw,代理',
598+
'RULE-SET,cn_additional,直连',
592599
'RULE-SET,cn_ip,直连',
593600
'MATCH,代理',
594601
];

Script/mihomoScript.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ const baseRuleProviders = {
206206
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/geolocation-cn.mrs',
207207
path: './ruleset/geolocation-cn.mrs',
208208
},
209+
cn_additional: {
210+
...ruleProviderCommonDomain,
211+
...ruleProviderFormatMrs,
212+
url: 'https://static-file-global.353355.xyz/rules/cn-additional-list.mrs',
213+
path: './ruleset/cn-additional-list.mrs',
214+
},
209215
cn: {
210216
...ruleProviderCommonDomain,
211217
...ruleProviderFormatMrs,
@@ -354,6 +360,7 @@ const serviceConfigs = [
354360
{
355361
key: 'microsoft',
356362
name: 'Microsoft',
363+
proxyMode: 'direct',
357364
providers: {
358365
microsoft: {
359366
...ruleProviderCommonDomain,
@@ -368,6 +375,7 @@ const serviceConfigs = [
368375
{
369376
key: 'apple',
370377
name: 'Apple',
378+
proxyMode: 'direct',
371379
providers: {
372380
apple: {
373381
...ruleProviderCommonDomain,
@@ -859,6 +867,7 @@ function main(config) {
859867

860868
// 兜底规则
861869
'RULE-SET,gfw,默认代理',
870+
'RULE-SET,cn_additional,直连',
862871
'RULE-SET,cn_ip,直连',
863872
'MATCH,默认代理',
864873
];

src/config/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ function main(config) {
270270

271271
// 兜底规则
272272
'RULE-SET,gfw,默认代理',
273+
'RULE-SET,cn_additional,直连',
273274
'RULE-SET,cn_ip,直连',
274275
'MATCH,默认代理',
275276
];

src/config/ruleProviders.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ const baseRuleProviders = {
8181
url: 'https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@meta/geo/geosite/geolocation-cn.mrs',
8282
path: './ruleset/geolocation-cn.mrs',
8383
},
84+
cn_additional: {
85+
...ruleProviderCommonDomain,
86+
...ruleProviderFormatMrs,
87+
url: 'https://static-file-global.353355.xyz/rules/cn-additional-list.mrs',
88+
path: './ruleset/cn-additional-list.mrs',
89+
},
8490
cn: {
8591
...ruleProviderCommonDomain,
8692
...ruleProviderFormatMrs,

src/config/serviceConfigs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ const serviceConfigs = [
108108
{
109109
key: 'microsoft',
110110
name: 'Microsoft',
111+
proxyMode: 'direct',
111112
providers: {
112113
microsoft: {
113114
...ruleProviderCommonDomain,
@@ -122,6 +123,7 @@ const serviceConfigs = [
122123
{
123124
key: 'apple',
124125
name: 'Apple',
126+
proxyMode: 'direct',
125127
providers: {
126128
apple: {
127129
...ruleProviderCommonDomain,

0 commit comments

Comments
 (0)