Advertisement
Guest User

PAC

a guest
Jan 22nd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. function FindProxyForURL(url, host)
  2. {
  3. var localip = myIpAddress();
  4.  
  5. // If you're connecting to a local address connection is direct
  6. if (shExpMatch(url, "http://172.16.*"))
  7. {
  8. return "DIRECT";
  9. }
  10.  
  11. // If your local address matches the form 172.16.x.x address proxy is used
  12. else if (shExpMatch(localip, "172.16.*"))
  13. {
  14. return "PROXY webgateway01.stbenedicts.local:9090";
  15. }
  16.  
  17. // No proxy is used for any other network (or local address)
  18. else
  19. {
  20. return "DIRECT";
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement