File: wwwoffle.pac

package info (click to toggle)
wwwoffle 2.9f-2.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,716 kB
  • ctags: 2,077
  • sloc: ansic: 23,951; sh: 6,815; lex: 4,201; perl: 917; makefile: 623; ruby: 181; lisp: 14
file content (19 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//
// WWWOFFLE Version 2.7 - Proxy autoconfiguration script
//
// See: http://www.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
//
// You should replace 'LOCALHOST' with the proxy hostname and port number
// if required.
//

function FindProxyForURL(url, host)
{
 if(isPlainHostName(host))
    return "DIRECT";
 else
    if((url.substring(0, 5) == "http:") || (url.substring(0, 4) == "ftp:"))
       return "PROXY LOCALHOST; DIRECT";
    else
       return "DIRECT";
}