Skip to content

Instantly share code, notes, and snippets.

function FindProxyForURL(url, host) {
// URLs within this network are accessed through
// port 8080 on fastproxy.example.com:
if (isInNet(host, "10.20.3.205", "255.255.0.0")) {
return "SOCKS 127.0.0.1:50001";
}
if (isInNet(host, "192.168.150.3", "255.255.0.0")) {
return "SOCKS 127.0.0.1:50001";
}

Keybase proof

I hereby claim:

  • I am sadanand-singh on github.
  • I am reckoningdev (https://keybase.io/reckoningdev) on keybase.
  • I have a public key whose fingerprint is F9DE 1F8A 2D2C EA1B 99EA A313 748D 64BB 045D 5803

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am sadanand-singh on github.
  • I am reckoningdev (https://keybase.io/reckoningdev) on keybase.
  • I have a public key whose fingerprint is 0CD3 5206 B071 A5A5 06FF 21E2 1442 86D6 FDF3 AE80

To claim this, I am signing this object: