Skip to content

Instantly share code, notes, and snippets.

@mattseymour
Created September 29, 2015 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattseymour/231c6d3abce0bbc09b8c to your computer and use it in GitHub Desktop.
Save mattseymour/231c6d3abce0bbc09b8c to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
if (dnsDomainIs(host, ".localhost"))
return "DIRECT";
if (url.substring(0, 6)=="https:")
return "DIRECT";
return "PROXY 192.168.100.202:9999";
}
@vaggos2002
Copy link

Or a more simplified one :

function FindProxyForURL(url, host)
{
     return "PROXY 192.168.102.23:808";
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment