Minor port-related fixes.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-08-12 22:00:58 -05:00
parent 7dc5f973de
commit 93615736af
2 changed files with 7 additions and 3 deletions

View File

@@ -212,7 +212,7 @@ public class Options {
@Override
public void read(String s) {
int i = Integer.parseInt(s);
if (i > 0 && i < 65535)
if (i > 0 && i <= 65535)
port = i;
}
},