Skip to content

Instantly share code, notes, and snippets.

@catalincezarene
Last active May 6, 2022 21:19
Show Gist options
  • Save catalincezarene/70a05cb22dccf222e5c0e95cb4f324c6 to your computer and use it in GitHub Desktop.
Save catalincezarene/70a05cb22dccf222e5c0e95cb4f324c6 to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
var ProxyConfig = "DIRECT";
if (dnsDomainIs(host, "localhost.vps-3fda5bde.machine.catalincezarene.com")) {
ProxyConfig = "SOCKS5 127.0.0.1:9900; SOCKS 127.0.0.1:9900";
}
return ProxyConfig;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment