Last active
July 28, 2019 22:14
-
-
Save lucasmaurice/2dd6e0dedf60cf45c342b653ad158d48 to your computer and use it in GitHub Desktop.
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 hostname matches, use proxy. | |
if ( | |
shExpMatch(host, "*.home") || | |
shExpMatch(host, "192.168.1.*") | |
) { | |
return "SOCKS localhost:8080"; | |
} | |
return "DIRECT"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment