Skip to content

Instantly share code, notes, and snippets.

@apla
Created July 10, 2021 20:36
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 apla/66e0de42c2fd8ccb0f148ffc6510cd08 to your computer and use it in GitHub Desktop.
Save apla/66e0de42c2fd8ccb0f148ffc6510cd08 to your computer and use it in GitHub Desktop.
proxy
function FindProxyForURL(url, host) {
if (
dnsDomainIs(host, ".rutracker.org")
|| dnsDomainIs(host, ".lostfilm.tv")
) {
return "PROXY 10.10.10.200:18080; DIRECT";
} else {
return "DIRECT";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment