mirror of
https://github.com/qdm12/gluetun.git
synced 2026-08-06 20:33:44 +02:00
chore(lint): bump linter from v2.4.0 to v2.11.4
This commit is contained in:
@@ -5,10 +5,11 @@ import (
|
||||
)
|
||||
|
||||
func setDontFragment(fd uintptr, ipv4 bool) (err error) {
|
||||
fdInt := int(fd) //nolint:gosec
|
||||
if ipv4 {
|
||||
return unix.SetsockoptInt(int(fd), unix.IPPROTO_IP,
|
||||
return unix.SetsockoptInt(fdInt, unix.IPPROTO_IP,
|
||||
unix.IP_MTU_DISCOVER, unix.IP_PMTUDISC_PROBE)
|
||||
}
|
||||
return unix.SetsockoptInt(int(fd), unix.IPPROTO_IPV6,
|
||||
return unix.SetsockoptInt(fdInt, unix.IPPROTO_IPV6,
|
||||
unix.IPV6_MTU_DISCOVER, unix.IPV6_PMTUDISC_PROBE)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user