fixed port regex

git-svn-id: file:///home/svn/incoming/trunk@2777 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2005-07-17 08:03:54 +00:00
parent cc32a21386
commit 97ec0cf7d8
1 changed files with 1 additions and 1 deletions

View File

@ -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