summaryrefslogtreecommitdiff
path: root/tests/data/px-manager-sample.pac
blob: 335c6b8f845f248c1706ee8fa53ebf92e7147fbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"
}