Skip to content

Instantly share code, notes, and snippets.

@sven-hash
Last active November 25, 2022 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sven-hash/0af2f067f289a6a8e3555312ec62fa12 to your computer and use it in GitHub Desktop.
Save sven-hash/0af2f067f289a6a8e3555312ec62fa12 to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
// use proxy for these hosts
if (shExpMatch(host, "metamask.io|infura.io|pokt.network|arbitrum.io|polygon-rpc.com|pastenym.ch"))
return "SOCKS5 proxy.notrustverify.ch:443";
// by default use no proxy
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment