diff --git a/forwardproxy.go b/forwardproxy.go index 56792e4..59fcd43 100644 --- a/forwardproxy.go +++ b/forwardproxy.go @@ -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"; } `