This file contains 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) { | |
// access the CIMCs via the SSH-tunneled SOCKS proxy that is hopefully | |
// running on port 8181, but allow fallback if it's not running | |
if (isInNet(dnsResolve(host), "10.0.7.0", "255.255.255.0")) { | |
return "SOCKS localhost:8181; DIRECT"; | |
} | |
// Everything else directly! | |
return "DIRECT"; | |
} |