From 49634c0b1daddbd7207f1964da444f8c66f51d52 Mon Sep 17 00:00:00 2001 From: yuyulei Date: Thu, 18 May 2017 22:47:57 +0800 Subject: [PATCH] fix small mistakon --- src/models/server/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/server/config.go b/src/models/server/config.go index 06bcc439..83a8fb07 100644 --- a/src/models/server/config.go +++ b/src/models/server/config.go @@ -434,7 +434,7 @@ func getPortRanges(rangeStr string) (portRanges [][2]int64, err error) { for _, portRangeStr := range rangeArray { // 1000-2000 or 2001 portArray := strings.Split(portRangeStr, "-") - // lenght: only 1 or 2 is correct + // length: only 1 or 2 is correct rangeType := len(portArray) if rangeType == 1 { singlePort, err := strconv.ParseInt(portArray[0], 10, 64)