fix: made goproxy warnings silent as they confuse users (ref #113)

This commit is contained in:
evilsocket 2018-03-05 18:37:48 +01:00
parent 07fe790ad1
commit d33430b047

View file

@ -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 {