Merge pull request #6 from caddyserver/pac-direct-localhost
PAC file: configure to access localhost directly
This commit is contained in:
commit
55b7450e88
1 changed files with 2 additions and 0 deletions
|
|
@ -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";
|
||||
}
|
||||
`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue