From 02a33ad5a603c199c821a76cc63e7e9007b281a4 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Thu, 4 Jun 2026 18:32:30 +0200 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- internal/socks5/udp_router.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/socks5/udp_router.go b/internal/socks5/udp_router.go index 83f86c60..6c22609c 100644 --- a/internal/socks5/udp_router.go +++ b/internal/socks5/udp_router.go @@ -111,10 +111,6 @@ func (r *udpRouter) unregisterAssociation(association udpAssociation) { delete(r.clientAddrPortToAssociation, clientAddrPort) } - if association.clientAddrPort.IsValid() { - delete(r.clientAddrPortToAssociation, association.clientAddrPort) - } - pendingAssociations := r.clientIPToPendingAssociations[association.controlConnAddr] for i, pendingAssociation := range pendingAssociations { if pendingAssociation.id == association.id {