mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +02:00
hotfix(pmtud): do not try every address for ICMP PMTUD
This commit is contained in:
@@ -53,6 +53,9 @@ func PathMTUDiscover(ctx context.Context, icmpAddrs []netip.Addr, tcpAddrs []net
|
|||||||
default:
|
default:
|
||||||
return 0, fmt.Errorf("ICMP path MTU discovery: %w", err)
|
return 0, fmt.Errorf("ICMP path MTU discovery: %w", err)
|
||||||
}
|
}
|
||||||
|
if icmpSuccess {
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, addrPort := range tcpAddrs {
|
for _, addrPort := range tcpAddrs {
|
||||||
|
|||||||
Reference in New Issue
Block a user