mirror of
https://github.com/qdm12/gluetun.git
synced 2026-06-25 21:37:31 +02:00
lint fix
This commit is contained in:
@@ -44,9 +44,9 @@ func connectFD(ctx context.Context, fd int, destination netip.AddrPort) error {
|
|||||||
return ctx.Err()
|
return ctx.Err()
|
||||||
default:
|
default:
|
||||||
wset := &unix.FdSet{}
|
wset := &unix.FdSet{}
|
||||||
wset.Bits[fd/64] |= 1 << (uint(fd) % 64)
|
wset.Bits[fd/64] |= 1 << (uint64(fd) % 64) //nolint:gosec,mnd
|
||||||
eset := &unix.FdSet{}
|
eset := &unix.FdSet{}
|
||||||
eset.Bits[fd/64] |= 1 << (uint(fd) % 64)
|
eset.Bits[fd/64] |= 1 << (uint64(fd) % 64) //nolint:gosec,mnd
|
||||||
const selectTimeout = 50 * time.Millisecond
|
const selectTimeout = 50 * time.Millisecond
|
||||||
timeval := unix.NsecToTimeval(int64(selectTimeout))
|
timeval := unix.NsecToTimeval(int64(selectTimeout))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user