function FindProxyForURL(url, host) { if (isInNet(dnsResolve(host), "192.168.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "172.16.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") || isInNet(dnsResolve(host), "127.0.0.0", "255.255.255.0") || shExpMatch(host, "localhost") || shExpMatch(host, "*.local") || isPlainHostName(host)) return "DIRECT"; return "PROXY 192.168.0.1:8118"; }