From 72595b2da84f7eaceac735dbe8fd45ff9668d92c Mon Sep 17 00:00:00 2001 From: yuyulei Date: Mon, 11 Jan 2021 16:52:17 +0800 Subject: [PATCH] Add user remote address info log (#2184) --- server/proxy/proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/proxy/proxy.go b/server/proxy/proxy.go index 88c2376..f26d73d 100644 --- a/server/proxy/proxy.go +++ b/server/proxy/proxy.go @@ -100,7 +100,7 @@ func (pxy *BaseProxy) GetWorkConnFromPool(src, dst net.Addr) (workConn net.Conn, xl.Warn("failed to get work connection: %v", err) return } - xl.Info("get a new work connection: [%s]", workConn.RemoteAddr().String()) + xl.Debug("get a new work connection: [%s]", workConn.RemoteAddr().String()) xl.Spawn().AppendPrefix(pxy.GetName()) workConn = frpNet.NewContextConn(pxy.ctx, workConn) @@ -159,7 +159,7 @@ func (pxy *BaseProxy) startListenHandler(p Proxy, handler func(Proxy, net.Conn, xl.Info("listener is closed") return } - xl.Debug("get a user connection [%s]", c.RemoteAddr().String()) + xl.Info("get a user connection [%s]", c.RemoteAddr().String()) go handler(p, c, pxy.serverCfg) } }(listener)