From d69c6ffe664a8fbf581c01087ed3d25ef837b233 Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Tue, 2 Feb 2016 01:08:17 +1100 Subject: [PATCH] Fixed config port checking logic. --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 3f4eb1a2..a4300e04 100644 --- a/config.go +++ b/config.go @@ -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