From a13b23e7ed247b2a07a796a4336fc1697b0ca4cb Mon Sep 17 00:00:00 2001
From: guoguangwu <guoguangwug@gmail.com>
Date: Thu, 14 Mar 2024 16:36:21 +0800
Subject: [PATCH] fix: typos

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
---
 client/proxy/proxy_wrapper.go | 2 +-
 client/visitor/xtcp.go        | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

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
 	}