From ceffb71e7bc8497110ea41437cc3df20649c9d2d Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 18 Apr 2017 22:35:13 +0200 Subject: [PATCH] refactor --- proxy/socks/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxy/socks/server.go b/proxy/socks/server.go index cf6e0821..de7bc254 100644 --- a/proxy/socks/server.go +++ b/proxy/socks/server.go @@ -75,8 +75,7 @@ func (s *Server) processTCP(ctx context.Context, conn internet.Connection, dispa if source, ok := proxy.SourceFromContext(ctx); ok { log.Access(source, "", log.AccessRejected, err) } - log.Trace(newError("failed to read request").Base(err)) - return err + return newError("failed to read request").Base(err) } conn.SetReadDeadline(time.Time{})