This commit is contained in:
Quentin McGaw
2026-06-11 13:36:08 +00:00
parent 70d80f7473
commit b44c671217
+2 -2
View File
@@ -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))