libs/web: fix "port" datatype to allow port 0

This commit is contained in:
Jo-Philipp Wich 2011-03-17 17:40:40 +00:00
parent ea7f4ccb9f
commit 8ea7eb8615

View file

@ -94,7 +94,7 @@ end
function port(val)
val = tonumber(val)
return ( val and val >= 1 and val <= 65535 )
return ( val and val >= 0 and val <= 65535 )
end
function portrange(val)