mirror of
https://github.com/iBug/pac.git
synced 2025-07-13 12:52:15 +08:00
commit
d564a01fdb
@ -27,6 +27,9 @@ var proxy = "__PROXY__";
|
||||
var direct = "DIRECT";
|
||||
|
||||
function FindProxyForURL(url, host) {
|
||||
if (!isResolvable(host)) {
|
||||
return proxy;
|
||||
}
|
||||
var remote = dnsResolve(host);
|
||||
if (belongsToSubnet(remote, WHITELIST)) {
|
||||
return direct;
|
||||
|
Loading…
Reference in New Issue
Block a user