From a2b5cde82918c34e41c516edc5eb68a1d2248043 Mon Sep 17 00:00:00 2001 From: Liu-WeiHu <6460176@qq.com> Date: Wed, 29 May 2024 15:55:33 +0800 Subject: [PATCH] release udpConn --- trace/udp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/trace/udp.go b/trace/udp.go index 50f5622b..94bc1c9d 100644 --- a/trace/udp.go +++ b/trace/udp.go @@ -167,6 +167,7 @@ func (t *UDPTracer) send(ttl int) error { } srcIP, srcPort, udpConn := t.getUDPConn(0) + defer udpConn.Close() var payload []byte if t.Quic {