parent
d9cdae3398
commit
e1f14eab88
1 changed files with 2 additions and 0 deletions
|
|
@ -208,6 +208,8 @@ func (fp *ForwardProxy) shouldServePacFile(r *http.Request) bool {
|
||||||
|
|
||||||
const pacFile = `
|
const pacFile = `
|
||||||
function FindProxyForURL(url, host) {
|
function FindProxyForURL(url, host) {
|
||||||
|
if (host === "127.0.0.1" || host === "::1" || host === "localhost")
|
||||||
|
return "DIRECT";
|
||||||
return "HTTPS %s:%s";
|
return "HTTPS %s:%s";
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue