Skip to content

Instantly share code, notes, and snippets.

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";
}