hotfix(pmtud): do not try every address for ICMP PMTUD

This commit is contained in:
Quentin McGaw
2026-02-16 20:46:28 +00:00
parent f81b8342d6
commit 36dfd5b631
+3
View File
@@ -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 {