移除会导致iOS失效的alert调试语句

This commit is contained in:
zhiyi
2024-09-23 23:48:33 +08:00
parent e814a152b2
commit 2cfb445da7

View File

@@ -125,22 +125,18 @@ function FindProxyForURL(url, host) {
|| isPrivateIp(host)
|| isLocalTestDomain(host)
|| host === 'localhost') {
alert(`${host} MATCHES LOCAL, USING DIRECT`)
return direct;
}
if (shExpMatch(url, "http:*")) {
alert(`${host} IS USING HTTP, USING DIRECT`)
return direct;
}
if (!ipRegExp.test(host)) {
if (isInDirectDomain(host)) {
alert(`${host} MATCHES DIRECT DOMAIN`)
return direct
}
if (isInProxyDomain(host)) {
alert(`${host} MATCHES PROXY DOMAIN`)
return proxy;
}
strIp = dnsResolve(host);
@@ -154,10 +150,8 @@ function FindProxyForURL(url, host) {
intIp = convertAddress(strIp);
if (match(intIp)) {
alert(`${host} MATCHES CNIP`)
return direct;
}
alert(`${host} NO RULES WARE MATCHED, USING PROXY`)
return proxy;
}