Skip to content

Instantly share code, notes, and snippets.

@mitsutaka
Last active April 25, 2020 02:51
Show Gist options
  • Save mitsutaka/1ab53072151b5529da2e1a1ec7d49fc4 to your computer and use it in GitHub Desktop.
Save mitsutaka/1ab53072151b5529da2e1a1ec7d49fc4 to your computer and use it in GitHub Desktop.
home socks5
function FindProxyForURL(url, host)
{
if (isPlainHostName(host) ||
shExpMatch(host, "*.tokyo.local") ||
isInNet(dnsResolve(host), "10.0.0.0", "255.255.255.0"))
return "SOCKS 10.1.0.202:8008";
if (shExpMatch(host, "*.amazon.co.jp") ||
shExpMatch(host, "*.amazonvideo.com"))
return "SOCKS 10.1.0.202:8008";
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment