Skip to content

Commit

Permalink
Regex fixed, SFA asset detour set.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Apr 10, 2024
1 parent 75b33d9 commit fe104b9
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1800,7 +1800,7 @@ const renderHomePage = async (env, hostName, fragConfigs) => {
const cleanIPs = cleanIP.value?.split(',');
const chainProxy = document.getElementById('outProxy').value;
const formData = new FormData(configForm);
const isVless = /vless:\\/\\/[^\s@]+@[^\s:]+:[^\s]+/.test(chainProxy);
const isVless = /vless:\\/\\/[^\s@]+@[^\\s:]+:[^\\s]+/.test(chainProxy);
const hasSecurity = /security=/.test(chainProxy);
const validSecurityType = /security=(tls|none|reality)/.test(chainProxy);
const validTransmission = /type=(tcp|grpc|ws)/.test(chainProxy);
Expand Down Expand Up @@ -2430,49 +2430,57 @@ const singboxConfigTemp = {
type: "remote",
tag: "geosite-ir",
format: "binary",
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-ir.srs"
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-ir.srs",
download_detour: "direct"
},
{
type: "remote",
tag: "geosite-category-ads-all",
format: "binary",
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-category-ads-all.srs"
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-category-ads-all.srs",
download_detour: "direct"
},
{
type: "remote",
tag: "geosite-malware",
format: "binary",
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-malware.srs"
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-malware.srs",
download_detour: "direct"
},
{
type: "remote",
tag: "geosite-phishing",
format: "binary",
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-phishing.srs"
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-phishing.srs",
download_detour: "direct"
},
{
type: "remote",
tag: "geosite-cryptominers",
format: "binary",
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-cryptominers.srs"
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-cryptominers.srs",
download_detour: "direct"
},
{
type: "remote",
tag: "geoip-ir",
format: "binary",
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs"
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs",
download_detour: "direct"
},
{
type: "remote",
tag: "geoip-malware",
format: "binary",
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-malware.srs"
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-malware.srs",
download_detour: "direct"
},
{
type: "remote",
tag: "geoip-phishing",
format: "binary",
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-phishing.srs"
url: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-phishing.srs",
download_detour: "direct"
}
],
auto_detect_interface: true,
Expand Down

0 comments on commit fe104b9

Please sign in to comment.