Skip to content

Commit fe104b9

Browse files
Regex fixed, SFA asset detour set.
1 parent 75b33d9 commit fe104b9

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

_worker.js

+17-9
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ const renderHomePage = async (env, hostName, fragConfigs) => {
18001800
const cleanIPs = cleanIP.value?.split(',');
18011801
const chainProxy = document.getElementById('outProxy').value;
18021802
const formData = new FormData(configForm);
1803-
const isVless = /vless:\\/\\/[^\s@]+@[^\s:]+:[^\s]+/.test(chainProxy);
1803+
const isVless = /vless:\\/\\/[^\s@]+@[^\\s:]+:[^\\s]+/.test(chainProxy);
18041804
const hasSecurity = /security=/.test(chainProxy);
18051805
const validSecurityType = /security=(tls|none|reality)/.test(chainProxy);
18061806
const validTransmission = /type=(tcp|grpc|ws)/.test(chainProxy);
@@ -2430,49 +2430,57 @@ const singboxConfigTemp = {
24302430
type: "remote",
24312431
tag: "geosite-ir",
24322432
format: "binary",
2433-
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-ir.srs"
2433+
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-ir.srs",
2434+
download_detour: "direct"
24342435
},
24352436
{
24362437
type: "remote",
24372438
tag: "geosite-category-ads-all",
24382439
format: "binary",
2439-
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-category-ads-all.srs"
2440+
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-category-ads-all.srs",
2441+
download_detour: "direct"
24402442
},
24412443
{
24422444
type: "remote",
24432445
tag: "geosite-malware",
24442446
format: "binary",
2445-
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-malware.srs"
2447+
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-malware.srs",
2448+
download_detour: "direct"
24462449
},
24472450
{
24482451
type: "remote",
24492452
tag: "geosite-phishing",
24502453
format: "binary",
2451-
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-phishing.srs"
2454+
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-phishing.srs",
2455+
download_detour: "direct"
24522456
},
24532457
{
24542458
type: "remote",
24552459
tag: "geosite-cryptominers",
24562460
format: "binary",
2457-
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-cryptominers.srs"
2461+
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-cryptominers.srs",
2462+
download_detour: "direct"
24582463
},
24592464
{
24602465
type: "remote",
24612466
tag: "geoip-ir",
24622467
format: "binary",
2463-
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs"
2468+
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs",
2469+
download_detour: "direct"
24642470
},
24652471
{
24662472
type: "remote",
24672473
tag: "geoip-malware",
24682474
format: "binary",
2469-
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-malware.srs"
2475+
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-malware.srs",
2476+
download_detour: "direct"
24702477
},
24712478
{
24722479
type: "remote",
24732480
tag: "geoip-phishing",
24742481
format: "binary",
2475-
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-phishing.srs"
2482+
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-phishing.srs",
2483+
download_detour: "direct"
24762484
}
24772485
],
24782486
auto_detect_interface: true,

0 commit comments

Comments
 (0)