daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest May 16th, 2018 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function FindProxyForURL(url, host)
  2. {
  3. if (isInNet(host, "127.0.0.0", "255.0.0.0"))
  4. return "DIRECT";
  5. else if (isInNet(myIpAddress(), "10.10.0.0", "255.255.0.0"))
  6. return "DIRECT";
  7. else if (isInNet(myIpAddress(), "10.20.0.0", "255.255.0.0"))
  8. return "DIRECT";
  9. else if (isInNet(myIpAddress(), "10.30.0.0", "255.255.0.0"))
  10. return "DIRECT";
  11. else if (isInNet(myIpAddress(), "10.40.0.0", "255.255.0.0"))
  12. return "DIRECT";
  13. else if (isInNet(myIpAddress(), "10.50.0.0", "255.255.0.0"))
  14. return "DIRECT";
  15. else if (isInNet(myIpAddress(), "10.60.0.0", "255.255.0.0"))
  16. return "DIRECT";
  17. else if (isInNet(myIpAddress(), "10.70.0.0", "255.255.0.0"))
  18. return "DIRECT";
  19. else if (isInNet(myIpAddress(), "10.80.0.0", "255.255.0.0"))
  20. return "DIRECT";
  21. else if (isInNet(myIpAddress(), "10.90.0.0", "255.255.0.0"))
  22. return "DIRECT";
  23. else if (isInNet(myIpAddress(), "10.100.0.0", "255.255.0.0"))
  24. return "DIRECT";
  25. else if (isInNet(myIpAddress(), "10.110.0.0", "255.255.0.0"))
  26. return "DIRECT";
  27. else if (isInNet(myIpAddress(), "10.120.0.0", "255.255.0.0"))
  28. return "DIRECT";
  29. else if (isInNet(myIpAddress(), "10.130.0.0", "255.255.0.0"))
  30. return "DIRECT";
  31. else if (isInNet(myIpAddress(), "10.140.0.0", "255.255.0.0"))
  32. return "DIRECT";
  33. else if (isInNet(myIpAddress(), "10.150.0.0", "255.255.0.0"))
  34. return "DIRECT";
  35. else if (isInNet(myIpAddress(), "10.200.0.0", "255.255.0.0"))
  36. return "DIRECT";
  37. else if (isInNet(myIpAddress(), "10.210.0.0", "255.255.0.0"))
  38. return "DIRECT";
  39. else if (isInNet(myIpAddress(), "10.220.0.0", "255.255.0.0"))
  40. return "DIRECT";
  41. else if (isPlainHostName(host) ||
  42.         shExpMatch(host, "*.local") ||
  43.         isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") ||
  44.         isInNet(dnsResolve(host), "172.16.0.0",  "255.240.0.0") ||
  45.         isInNet(dnsResolve(host), "192.168.0.0",  "255.255.0.0") ||
  46.         isInNet(dnsResolve(host), "127.0.0.0", "255.255.255.0"))
  47.         return "DIRECT";
  48. else
  49. return "PROXY squid.pleasantonusd.net:3199";
  50. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top