From 36dfd5b631175188eba0040fe3b1cf09c81ec2d5 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Mon, 16 Feb 2026 20:46:28 +0000 Subject: [PATCH] hotfix(pmtud): do not try every address for ICMP PMTUD --- internal/pmtud/pmtud.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/pmtud/pmtud.go b/internal/pmtud/pmtud.go index 37e8ef8d..7d07f427 100644 --- a/internal/pmtud/pmtud.go +++ b/internal/pmtud/pmtud.go @@ -53,6 +53,9 @@ func PathMTUDiscover(ctx context.Context, icmpAddrs []netip.Addr, tcpAddrs []net default: return 0, fmt.Errorf("ICMP path MTU discovery: %w", err) } + if icmpSuccess { + break + } } for _, addrPort := range tcpAddrs {