自动更新 gfw.pac

This commit is contained in:
GitHub Action
2024-09-23 15:49:25 +00:00
parent 2cfb445da7
commit 78422f884e
2 changed files with 24 additions and 11 deletions

View File

@@ -11078,22 +11078,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);
@@ -11107,10 +11103,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;
}