main
lzf 2025-09-26 14:34:12 +08:00
parent 2b2faec437
commit 12336a9c40
1 changed files with 5 additions and 4 deletions

View File

@ -103,10 +103,11 @@ func (t *TCP) handleConn(mainCtx context.Context, localConn net.Conn, targetAddr
default: default:
targetConn, err = net.Dial("tcp", targetAddr) targetConn, err = net.Dial("tcp", targetAddr)
if err != nil { }
mylog.Error("Error connecting to target:", err)
return if err != nil {
} mylog.Error("Error connecting to target:", err)
return
} }
defer targetConn.Close() defer targetConn.Close()