Fix Android UDP GRO check

This commit is contained in:
albexk 2024-02-10 17:14:51 +03:00 committed by pokamest
parent 59101fd202
commit 032e33f577
2 changed files with 4 additions and 10 deletions

View file

@ -57,13 +57,5 @@ func init() {
}
return err
},
// Attempt to enable UDP_GRO
func(network, address string, c syscall.RawConn) error {
c.Control(func(fd uintptr) {
_ = unix.SetsockoptInt(int(fd), unix.IPPROTO_UDP, unix.UDP_GRO, 1)
})
return nil
},
)
}