File: wpad.dat

package info (click to toggle)
privoxy 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,488 kB
  • sloc: ansic: 33,393; perl: 4,813; sh: 3,940; makefile: 146; awk: 18; xml: 14
file content (11 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
function FindProxyForURL(url, host) {
    var proxy = "PROXY @my-ip-address@:@my-port@; DIRECT";
    var direct = "DIRECT";
    if (isPlainHostName(host)) {
        return direct;
    }
    if (url.substring(0, 4) == "ftp:" || url.substring(0, 6) == "rsync:") {
        return direct;
    }
    return proxy;
}