From d33430b047ebd857cecd8c74d44b187575db098c Mon Sep 17 00:00:00 2001 From: evilsocket Date: Mon, 5 Mar 2018 18:37:48 +0100 Subject: [PATCH] fix: made goproxy warnings silent as they confuse users (ref #113) --- modules/http_proxy_base.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/http_proxy_base.go b/modules/http_proxy_base.go index 8b9cf219..37800978 100644 --- a/modules/http_proxy_base.go +++ b/modules/http_proxy_base.go @@ -63,6 +63,9 @@ func NewHTTPProxy(s *session.Session) *HTTPProxy { Server: nil, } + p.Proxy.Verbose = false + p.Proxy.Logger.SetOutput(ioutil.Discard) + p.Proxy.NonproxyHandler = http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { if p.doProxy(req) == true { if p.isTLS == false {