diff --git a/proxy/handler/http.go b/proxy/handler/http.go index 3ad9fe1..121bf8f 100644 --- a/proxy/handler/http.go +++ b/proxy/handler/http.go @@ -85,7 +85,7 @@ func (h *HttpHandler) deliverRequest(ctx context.Context, from *net.TCPConn, to pkt.Tidy() if _, err := to.Write(pkt.Raw()); err != nil { - logger.Debug().Msgf("error Writing to %s", td) + logger.Debug().Msgf("error writing to %s", td) return } } @@ -116,7 +116,7 @@ func (h *HttpHandler) deliverResponse(ctx context.Context, from *net.TCPConn, to } if _, err := to.Write(bytesRead); err != nil { - logger.Debug().Msgf("error Writing to %s", td) + logger.Debug().Msgf("error writing to %s", td) return } } diff --git a/proxy/handler/https.go b/proxy/handler/https.go index f20c498..857fead 100644 --- a/proxy/handler/https.go +++ b/proxy/handler/https.go @@ -61,7 +61,7 @@ func (h *HttpsHandler) Serve(ctx context.Context, lConn *net.TCPConn, initPkt *p return } - logger.Debug().Msgf("sent connection estabalished to %s", lConn.RemoteAddr()) + logger.Debug().Msgf("sent connection established to %s", lConn.RemoteAddr()) // Read client hello m, err := packet.ReadTLSMessage(lConn) @@ -118,7 +118,7 @@ func (h *HttpsHandler) communicate(ctx context.Context, from *net.TCPConn, to *n } if _, err := to.Write(bytesRead); err != nil { - logger.Debug().Msgf("error Writing to %s", td) + logger.Debug().Msgf("error writing to %s", td) return } } diff --git a/proxy/https.go b/proxy/https.go index 86ab80c..4bf0329 100644 --- a/proxy/https.go +++ b/proxy/https.go @@ -2,11 +2,11 @@ package proxy import ( "context" - "github.com/xvzc/SpoofDPI/util" "net" "strconv" "github.com/xvzc/SpoofDPI/packet" + "github.com/xvzc/SpoofDPI/util" "github.com/xvzc/SpoofDPI/util/log" ) @@ -41,7 +41,7 @@ func (pxy *Proxy) handleHttps(ctx context.Context, lConn *net.TCPConn, exploit b return } - logger.Debug().Msgf("sent connection estabalished to %s", lConn.RemoteAddr()) + logger.Debug().Msgf("sent connection established to %s", lConn.RemoteAddr()) // Read client hello m, err := packet.ReadTLSMessage(lConn) diff --git a/proxy/server.go b/proxy/server.go index e74cb13..e81740e 100644 --- a/proxy/server.go +++ b/proxy/server.go @@ -3,11 +3,11 @@ package proxy import ( "context" "errors" - "github.com/xvzc/SpoofDPI/util" "io" "net" "time" + "github.com/xvzc/SpoofDPI/util" "github.com/xvzc/SpoofDPI/util/log" ) @@ -65,7 +65,7 @@ func Serve(ctx context.Context, from *net.TCPConn, to *net.TCPConn, proto string } if _, err := to.Write(bytesRead); err != nil { - logger.Debug().Msgf("error Writing to %s", td) + logger.Debug().Msgf("error writing to %s", td) return } }