google fonts 服务回归,放入直接访问域名;调整匹配规则,先匹配直接域名,再匹配代理域名

This commit is contained in:
zhiyi
2023-09-20 19:08:44 +08:00
parent 6b8f248140
commit c067de8421
3 changed files with 19 additions and 9 deletions

View File

@@ -135,14 +135,14 @@ function FindProxyForURL(url, host) {
}
if (!ipRegExp.test(host)) {
if (isInProxyDomain(host)) {
alert(`${host} MATCHES PROXY DOMAIN`)
return proxy;
}
if (isInDirectDomain(host)) {
alert(`${host} MATCHES DIRECT DOMAIN`)
return direct
}
if (isInProxyDomain(host)) {
alert(`${host} MATCHES PROXY DOMAIN`)
return proxy;
}
strIp = dnsResolve(host);
} else {
strIp = host