Fixed config port checking logic.

This commit is contained in:
Adrian Gallagher
2016-02-02 01:08:17 +11:00
parent 54ba2f81a2
commit d69c6ffe66

View File

@@ -177,7 +177,7 @@ func CheckWebserverValues() error {
return errors.New(WarningWebserverListenAddressInvalid)
}
if port < 0 || port > 65355 {
if port < 1 || port > 65355 {
return errors.New(WarningWebserverListenAddressInvalid)
}
return nil