moare fixes

This commit is contained in:
Quentin McGaw
2026-08-06 20:19:10 +00:00
parent a10285d874
commit c463c56f86
8 changed files with 145 additions and 22 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func (f *Firewall) AcceptInputToPort(_ context.Context, intf string, port uint16
}
table, inputChain, _, _ := setupFilterWithBaseChains(conn)
portBytes := []byte{byte(port >> 8), byte(port)} //nolint:mnd
portBytes := []byte{byte(port >> 8), byte(port)} //nolint:mnd,gosec // network byte order
const tcp, udp uint8 = 6, 17
protocols := []uint8{tcp, udp}