forked from quic-go/quic-go
enable DPLPMTUD on macOS dual-stack sockets (#4723)
* enable DPLPMTUD on macOS dual-stack sockets https://datatracker.ietf.org/doc/draft-seemann-tsvwg-udp-fragmentation/ contains details on how IP fragmentation is handled on different platforms. * only enable DF on macOS Sequoia (and newer) dual-stack sockets * fix macOS version numbers * fix comment in MTU integration test * skip dual-stack test on old macOS versions
This commit is contained in:
@@ -58,8 +58,8 @@ func wrapConn(pc net.PacketConn) (rawConn, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// only set DF on UDP sockets
|
||||
if _, ok := pc.LocalAddr().(*net.UDPAddr); ok {
|
||||
// Only set DF on sockets that we expect to be able to handle that configuration.
|
||||
var err error
|
||||
supportsDF, err = setDF(rawConn)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user