This commit is contained in:
Fangliding
2026-05-18 13:57:48 +08:00
parent 564c7ab674
commit b0df5722ad
+1 -1
View File
@@ -171,7 +171,7 @@ func (s *Server) processTCP(ctx context.Context, conn stat.Connection, dispatche
go func() {
errCh <- s.handleUDPPayload(ctx, tempUDPConn, dispatcher)
}()
// Asociate TCP keeps the UDP alive
// Associated TCP keeps the UDP alive
// Close UDP if TCP connection is closed
// Or Close TCP if UDP is idle timeout
io.Copy(buf.DiscardBytes, conn)