Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tue Sep 16 13:02:24 2014
- TCP 172.27.0.2:80 --> 172.27.107.79:50938 | AP
- HTTP/1.1 200 OK
- Content-Type: application/x-ns-proxy-autoconfig
- Last-Modified: Fri, 08 Aug 2014 06:22:35 GMT
- Accept-Ranges: bytes
- ETag: "b53eee24d1b2cf1:0"
- Server: Microsoft-IIS/8.5
- Date: Tue, 16 Sep 2014 05:02:03 GMT
- Content-Length: 866
- function FindProxyForURL(url, host) {
- var proxy = "PROXY 172.27.254.1:8080";
- pacver = "Sonar Auto Proxy Configuration Script 6/8/2014 10AM";
- // Dont request proxy when accessing localhost.
- if (isInNet(host, "127.0.0.1", "255.255.0.0") || isInNet(host, "172.27.0.0", "255.255.0.0")){
- return "DIRECT";.
- }
- // Local URLs from the domains below example.com don't need a proxy:
- if (shExpMatch(host, "*.example.com")){
- return "DIRECT";
- }
- // Utility
- if ((host == "proxyinfo.sonar")){
- alert("Selected Proxy is: " + proxy);
- alert("Local IP address is: " + myIpAddress());
- alert("PAC File Version: " + pacinfo);
- }
- // All other requests go through port 8080 of proxy.example.com
- // should that fail to respond, go directly to the WWW:
- return "PROXY 172.27.254.1:8080";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement