Skip to content

Commit

Permalink
udp_linux.go: use IP_PMTUDISC_PROBE instead of IP_MTU_DISCOVER
Browse files Browse the repository at this point in the history
  • Loading branch information
cooldogedev committed Dec 4, 2024
1 parent 4331be0 commit d375742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udp_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func setOpts(conn syscall.RawConn) (mtud, ecn bool) {
_ = conn.Control(func(fd uintptr) {
if err := unix.SetsockoptInt(int(fd), unix.IPPROTO_IP, unix.IP_MTU_DISCOVER, unix.IP_PMTUDISC_DO); err == nil {
if err := unix.SetsockoptInt(int(fd), unix.IPPROTO_IP, unix.IP_MTU_DISCOVER, unix.IP_PMTUDISC_PROBE); err == nil {
mtud = true
}
})
Expand Down

0 comments on commit d375742

Please sign in to comment.