mirror of
https://github.com/bettercap/bettercap
synced 2025-07-11 07:37:00 -07:00
fix: made goproxy warnings silent as they confuse users (ref #113)
This commit is contained in:
parent
07fe790ad1
commit
d33430b047
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue