diff options
Diffstat (limited to 'tests/data/px-manager-sample.pac')
-rw-r--r-- | tests/data/px-manager-sample.pac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/data/px-manager-sample.pac b/tests/data/px-manager-sample.pac index b86c555..335c6b8 100644 --- a/tests/data/px-manager-sample.pac +++ b/tests/data/px-manager-sample.pac @@ -2,5 +2,17 @@ function FindProxyForURL(url, host) { var myIP = myIpAddress(); + if(shExpMatch(host,"192.168.10.4")) + return "SOCKS 127.0.0.1:1983" + + if(shExpMatch(host,"192.168.10.5")) + return "SOCKS4 127.0.0.1:1983" + + if(shExpMatch(host,"192.168.10.6")) + return "SOCKS4A 127.0.0.1:1983" + + if(shExpMatch(host,"192.168.10.7")) + return "SOCKS5 127.0.0.1:1983" + return "PROXY 127.0.0.1:1983" } |