Created
November 23, 2018 03:44
-
-
Save akiraaisha/049dcfe6520dccced435b7d64dc0f67b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) | |
{ | |
var useSocks = [".dnsleaktest.com|music.youtube.com|.crunchyroll.com"]; //sites that's going to be using Socks | |
var useDirect = ["youtube.com"] //and this is for direct | |
for (var i= 0; i < useSocks.length; i++) { | |
if (shExpMatch(host, useSocks[i])) { | |
return "SOCKS5 localhost:9050"; | |
} | |
} | |
for (var i= 0; i < useDirect.length; i++) { | |
if (shExpMatch(host, useDirect[i])) { | |
return "DIRECT"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment