PAC file: configure to access localhost directly

Implements #5
This commit is contained in:
Sergey Frolov 2017-10-31 16:02:52 -06:00
parent d9cdae3398
commit e1f14eab88

View file

@ -208,6 +208,8 @@ func (fp *ForwardProxy) shouldServePacFile(r *http.Request) bool {
const pacFile = `
function FindProxyForURL(url, host) {
if (host === "127.0.0.1" || host === "::1" || host === "localhost")
return "DIRECT";
return "HTTPS %s:%s";
}
`