diff --git a/client/proxy/proxy_wrapper.go b/client/proxy/proxy_wrapper.go index 487e3702..4f97275d 100644 --- a/client/proxy/proxy_wrapper.go +++ b/client/proxy/proxy_wrapper.go @@ -65,7 +65,7 @@ type Wrapper struct { // underlying proxy pxy Proxy - // if ProxyConf has healcheck config + // if ProxyConf has health check config // monitor will watch if it is alive monitor *health.Monitor diff --git a/client/visitor/xtcp.go b/client/visitor/xtcp.go index a1efd72b..9eca40c8 100644 --- a/client/visitor/xtcp.go +++ b/client/visitor/xtcp.go @@ -157,9 +157,9 @@ func (sv *XTCPVisitor) keepTunnelOpenWorker() { func (sv *XTCPVisitor) handleConn(userConn net.Conn) { xl := xlog.FromContextSafe(sv.ctx) - isConnTrasfered := false + isConnTransferred := false defer func() { - if !isConnTrasfered { + if !isConnTransferred { userConn.Close() } }() @@ -187,7 +187,7 @@ func (sv *XTCPVisitor) handleConn(userConn net.Conn) { xl.Errorf("transfer connection to visitor %s error: %v", sv.cfg.FallbackTo, err) return } - isConnTrasfered = true + isConnTransferred = true return }