From 8287ba24b9c43998161394b87773e8ac7def5a3c Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Wed, 8 Jun 2022 17:55:32 +0200 Subject: [PATCH] Do not lint the protocol magic numbers I happily use https://pkg.go.dev/golang.org/x/net/internal/iana, but it is internal --- acls.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acls.go b/acls.go index 799db955..f3ff11fb 100644 --- a/acls.go +++ b/acls.go @@ -23,7 +23,7 @@ const ( errInvalidGroup = Error("invalid group") errInvalidTag = Error("invalid tag") errInvalidPortFormat = Error("invalid port format") - errWildcardIsNeeded = Error("wildcard as port is required for the procotol") + errWildcardIsNeeded = Error("wildcard as port is required for the protocol") ) const ( @@ -267,7 +267,7 @@ func parseProtocol(protocol string) ([]int, bool, error) { if err != nil { return nil, false, err } - needsWildcard := protocolNumber != 6 && protocolNumber != 17 && protocolNumber != 132 + needsWildcard := protocolNumber != 6 && protocolNumber != 17 && protocolNumber != 132 // nolint return []int{protocolNumber}, needsWildcard, nil }