Close inbound conn

This commit is contained in:
Fangliding
2026-05-08 00:36:18 +08:00
parent f7e6510199
commit 47cbf7fa3c
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -17,6 +17,7 @@ import (
func CopyPacketConn(ctx context.Context, inboundConn net.Conn, link *transport.Link, destination net.Destination, serverConn net.PacketConn) error {
cancel := func() {
common.Interrupt(link.Reader)
common.Interrupt(serverConn)
}
conn := &PacketConnWrapper{
Reader: link.Reader,