source: n4d-proxy/trunk/fuentes/install.n4d-proxy/usr/share/n4d/templates/squid/proxy.pac @ 229

Last change on this file since 229 was 229, checked in by hectorgh, 4 years ago

adding project files

File size: 358 bytes
Line 
1function FindProxyForURL(url,host)
2{
3        if (isInNet(host, "{{ INTERNAL_NETWORK }}",  "{{ INTERNAL_LONGMASK }}") ||
4            isInNet(host, "127.0.0.1", "255.255.255.255") ||
5            dnsDomainIs(host, "{{ INTERNAL_DOMAIN }}") ||
6            (url.substring (0, 5) == "feed:"))
7        {
8            return "DIRECT";
9        }
10        else{
11            return "PROXY {{ PROXY_HOST }}:{{ PROXY_HTTP_PORT }}";
12        }
13}
Note: See TracBrowser for help on using the repository browser.