Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function FindProxyForURL(url, host)
- {
- var localip = myIpAddress();
- // If you're connecting to a local address connection is direct
- if (shExpMatch(url, "http://172.16.*"))
- {
- return "DIRECT";
- }
- // If your local address matches the form 172.16.x.x address proxy is used
- else if (shExpMatch(localip, "172.16.*"))
- {
- return "PROXY webgateway01.stbenedicts.local:9090";
- }
- // No proxy is used for any other network (or local address)
- else
- {
- return "DIRECT";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement