fix: close conn after peek failed in mixed listener (#2621)

This commit is contained in:
hunshcn
2026-03-14 08:29:47 +08:00
committed by GitHub
parent 7e6a7d7263
commit 314864362a

View File

@@ -148,6 +148,7 @@ func handleConn(conn net.Conn, tunnel C.Tunnel, store auth.AuthStore, additions
bufConn := N.NewBufferedConn(conn)
head, err := bufConn.Peek(1)
if err != nil {
conn.Close()
return
}