Last active
July 12, 2021 22:10
-
-
Save amoravec/a7f5dadce44af4e4ecfaf9883745979c to your computer and use it in GitHub Desktop.
Proxy Auto Configuration test file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) { | |
// if the host a name, use a proxy | |
if (isResolvable(host)) { | |
return "PROXY localhost:8080; DIRECT"; | |
} | |
// if the host is not a resolvable name, go direct | |
return "DIRECT"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment