fix: correct range condition for parsePort

This commit is contained in:
Henri Menke 2022-03-30 08:48:39 -04:00 committed by GitHub
parent 7b7cf2464c
commit e47479a48d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")
}