Fix port range check, port should no be greater than 65535.

This commit is contained in:
xiangpengzhao
2016-06-21 04:01:14 -04:00
parent 812b87c8e6
commit 70e3637660
2 changed files with 9 additions and 1 deletions

View File

@@ -38,6 +38,9 @@ func TestPortRange(t *testing.T) {
{"100 - 200", false, "", -1, -1},
{"-100", false, "", -1, -1},
{"100-", false, "", -1, -1},
{"200-100", false, "", -1, -1},
{"60000-70000", false, "", -1, -1},
{"70000-80000", false, "", -1, -1},
}
for i := range testCases {