"Fossies" - the Fresh Open Source Software Archive

Member "privoxy_3.0.33/templates/wpad.dat" (8 Dec 2021, 322 Bytes) of package /windows/www/privoxy_3.0.33.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) AMPL source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 function FindProxyForURL(url, host) {
    2     var proxy = "PROXY @my-ip-address@:@my-port@; DIRECT";
    3     var direct = "DIRECT";
    4     if (isPlainHostName(host)) {
    5         return direct;
    6     }
    7     if (url.substring(0, 4) == "ftp:" || url.substring(0, 6) == "rsync:") {
    8         return direct;
    9     }
   10     return proxy;
   11 }