From e47479a48d13d6e1ab8a20c4f225cfff3069341c Mon Sep 17 00:00:00 2001 From: Henri Menke Date: Wed, 30 Mar 2022 08:48:39 -0400 Subject: [PATCH] fix: correct range condition for parsePort --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index f5c8e50..0cc123a 100644 --- a/config.go +++ b/config.go @@ -63,7 +63,7 @@ func parsePort(section *ini.Section, keyName string) (int, error) { return 0, err } - if port >= 0 && port < 65536 { + if !(port >= 0 && port < 65536) { return 0, errors.New("port should be >= 0 and < 65536") }