Added validation for port argument (in referral to issue #12). Port number must be a valid integer from 1 to 65535.
This commit is contained in:
parent
d5eca8bab3
commit
0703732ddb
|
@ -37,7 +37,7 @@ end
|
|||
|
||||
args = options.parse!
|
||||
local_port = args[0]
|
||||
unless local_port
|
||||
unless local_port.to_i.between?(1, 65535)
|
||||
puts options
|
||||
exit
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue