mirror of
https://github.com/fatedier/frp.git
synced 2025-06-17 09:08:21 +00:00
Compare commits
2 Commits
25c57d60f4
...
96c629eb96
Author | SHA1 | Date | |
---|---|---|---|
|
96c629eb96 | ||
|
a13b23e7ed |
@ -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
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user