From 0492268190290621105d872e2b60bae77f1a178b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B2=B3?= Date: Mon, 25 Feb 2019 20:25:23 +0800 Subject: [PATCH] Secret mode add bug --- server/tool/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tool/utils.go b/server/tool/utils.go index 37399df..b25ced6 100644 --- a/server/tool/utils.go +++ b/server/tool/utils.go @@ -13,7 +13,7 @@ func init() { } func TestServerPort(p int, m string) (b bool) { - if p > 65535 || p <= 0 { + if p > 65535 || p < 0 { return false } if len(ports) != 0 {