From 7234323840f6a077e3ec1cd4e05bc9b8db739573 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Mon, 24 Sep 2018 13:42:25 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/http_proxy_base.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/http_proxy_base.go b/modules/http_proxy_base.go index 613d6737..4b32bed5 100644 --- a/modules/http_proxy_base.go +++ b/modules/http_proxy_base.go @@ -277,7 +277,7 @@ func (p *HTTPProxy) httpsWorker() error { for p.isRunning { c, err := p.sniListener.Accept() if err != nil { - log.Warning("Error accepting connection: %s.", err) + log.Warning("error accepting connection: %s.", err) continue } @@ -288,17 +288,17 @@ func (p *HTTPProxy) httpsWorker() error { tlsConn, err := vhost.TLS(c) if err != nil { - log.Warning("Error reading SNI: %s.", err) + log.Warning("error reading SNI: %s.", err) return } hostname := tlsConn.Host() if hostname == "" { - log.Warning("Client does not support SNI.") + log.Warning("client does not support SNI.") return } - log.Debug("Got new SNI from %s for %s", core.Bold(stripPort(c.RemoteAddr().String())), core.Yellow(hostname)) + log.Debug("[%s] proxying connection from %s to %s", core.Green("https.proxy"), core.Bold(stripPort(c.RemoteAddr().String())), core.Yellow(hostname)) req := &http.Request{ Method: "CONNECT",