Skip to content

Instantly share code, notes, and snippets.

@Flygsand
Last active August 17, 2020 14:56
Show Gist options
  • Save Flygsand/028281698b312284ff2784f2649b38a7 to your computer and use it in GitHub Desktop.
Save Flygsand/028281698b312284ff2784f2649b38a7 to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
if (
dnsDomainIs(host, ".sap") ||
dnsDomainIs(host, ".sap.corp") ||
dnsDomainIs(host, ".sap.ondemand.com")) {
return "SOCKS5 127.0.0.1:10001";
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment