From 8ed42b967d9732ef159fe59baf7295e9d52f22fc Mon Sep 17 00:00:00 2001 From: berlin2123 <68841407+berlin2123@users.noreply.github.com> Date: Thu, 13 Oct 2022 10:10:46 +0800 Subject: [PATCH] Update proxy.go --- server/proxy/proxy.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/proxy/proxy.go b/server/proxy/proxy.go index d7372e18..df00608c 100644 --- a/server/proxy/proxy.go +++ b/server/proxy/proxy.go @@ -306,17 +306,17 @@ func HandleUserTCPConnection(pxy Proxy, userConn net.Conn, serverCfg config.Serv xl.Debug("join connection closed, it remains [%d]ms, workConn(l[%s] r[%s]) userConn(l[%s] r[%s])", connectionDuration, workConn.LocalAddr().String(), workConn.RemoteAddr().String(), userConn.LocalAddr().String(), userConn.RemoteAddr().String()) xl.Info("connection closed, it remains [%d]ms, userConn(l[%s] r[%s])", connectionDuration, - userConn.LocalAddr().String(), userConn.RemoteAddr().String()) + userConn.LocalAddr().String(), userConn.RemoteAddr().String()) } else { xl.Debug("join connection closed, userConn(l[%s] r[%s])", userConn.LocalAddr().String(), userConn.RemoteAddr().String()) } } -func IsTheTypeToLog(LogDurationTypes string, name string) bool { - if strings.Contains(LogDurationTypes, "all") { +func IsTheTypeToLog(logDurationTypes string, name string) bool { + if strings.Contains(logDurationTypes, "all") { return true } - thestrlist := strings.Split(LogDurationTypes, ",") + thestrlist := strings.Split(logDurationTypes, ",") for i := 0; i < len(thestrlist); i++ { if strings.Contains(name, thestrlist[i]) { return true