fixed port regex
git-svn-id: file:///home/svn/incoming/trunk@2777 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
cc32a21386
commit
97ec0cf7d8
|
@ -109,7 +109,7 @@ class OptPort < OptBase
|
|||
|
||||
def valid?(value)
|
||||
if ((value != nil and value.to_s.empty? == false) and
|
||||
((value.to_i < 0 or value.to_i > 65535)))
|
||||
((value.to_s.match(/^\d+$/) == nil or value.to_i < 0 or value.to_i > 65535)))
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue