Skip to content

Instantly share code, notes, and snippets.

@vadikgo
Created November 18, 2020 15:45
Show Gist options
  • Save vadikgo/f24ba6c7bc565a49263d09817a81c1e1 to your computer and use it in GitHub Desktop.
Save vadikgo/f24ba6c7bc565a49263d09817a81c1e1 to your computer and use it in GitHub Desktop.
safari proxy pac
function FindProxyForURL(url, host) {
if (dnsDomainIs(host, ".vtb") || dnsDomainIs(host, ".vtb.ru") ||
shExpMatch(host, "10.*") ||
shExpMatch(host, ".*\.vtb.*")) {
return "SOCKS 127.0.0.1:9050; SOCKS5 127.0.0.1:9050;";
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment