function FindProxyForURL(url, host) { if (isPlainHostName(host) || dnsDomainIs(host, "baythorne.internal") ) return "DIRECT"; if ( dnsDomainIs(host, "google.com") || dnsDomainIs(host, "google.co.uk") || dnsDomainIs(host, "icanhascheezburger.com") || dnsDomainIs(host, "wikipedia.com") || dnsDomainIs(host, "bbc.co.uk") ) return "PROXY localhost:8081"; if ( ( dnsDomainIs(host, "redhat.com") && !isResolvable(host) && host != "bugzilla.redhat.com") ) return "PROXY localhost:8081"; // return "PROXY localhost:8082"; return "DIRECT"; }