From 1010e4877b7016dc2a3789f5f772a098c472f1ff Mon Sep 17 00:00:00 2001 From: Aaron U'Ren Date: Tue, 8 Oct 2024 15:33:23 -0500 Subject: [PATCH] fix(tunnels): fix encap port validation Make new logic similar to previous logic and remove superfluous check Co-authored-by: Tom Wieczorek --- pkg/tunnels/linux_tunnels.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tunnels/linux_tunnels.go b/pkg/tunnels/linux_tunnels.go index 37f98b08d..241644ece 100644 --- a/pkg/tunnels/linux_tunnels.go +++ b/pkg/tunnels/linux_tunnels.go @@ -70,7 +70,7 @@ func ParseEncapType(encapType string) (EncapType, error) { type EncapPort uint16 func (e EncapPort) checkWithinRange() error { - if uint16(e) > minPort && uint16(e) < maxPort { + if uint16(e) >= minPort { return nil } return fmt.Errorf("specified encap port is out of range of valid ports: %d, valid range is from %d to %d",