Last active
August 20, 2025 19:28
-
-
Save enthooz/ab5a009bc38a4ead228999493cb302f2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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) { | |
| // Roku corp domains | |
| if (dnsDomainIs(host, ".roku.com") || dnsDomainIs(host, ".rokulabs.net")) { | |
| return "SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080"; | |
| } | |
| // Private subnets | |
| if (isInNet(host, "10.0.0.0", "255.0.0.0") || | |
| isInNet(host, "172.16.0.0", "255.240.0.0") || | |
| isInNet(host, "192.168.0.0", "255.255.0.0")) | |
| return "SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080; DIRECT"; | |
| return "DIRECT"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment