From b44c6712179f975ae75fda3785b9c218a6fd2cb8 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Thu, 11 Jun 2026 13:36:08 +0000 Subject: [PATCH] lint fix --- internal/restrictednet/unix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/restrictednet/unix.go b/internal/restrictednet/unix.go index 387233cc..d91ea688 100644 --- a/internal/restrictednet/unix.go +++ b/internal/restrictednet/unix.go @@ -44,9 +44,9 @@ func connectFD(ctx context.Context, fd int, destination netip.AddrPort) error { return ctx.Err() default: 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.Bits[fd/64] |= 1 << (uint(fd) % 64) + eset.Bits[fd/64] |= 1 << (uint64(fd) % 64) //nolint:gosec,mnd const selectTimeout = 50 * time.Millisecond timeval := unix.NsecToTimeval(int64(selectTimeout))