forked from quic-go/quic-go
10
sys_conn.go
10
sys_conn.go
@@ -30,9 +30,13 @@ func wrapConn(pc net.PacketConn) (rawConn, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
err = setDF(rawConn)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
if _, ok := pc.LocalAddr().(*net.UDPAddr); ok {
|
||||
// Only set DF on sockets that we expect to be able to handle that configuration.
|
||||
err = setDF(rawConn)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
}
|
||||
c, ok := pc.(OOBCapablePacketConn)
|
||||
|
||||
Reference in New Issue
Block a user