libs/web: fix "port" datatype to allow port 0
This commit is contained in:
parent
ea7f4ccb9f
commit
8ea7eb8615
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ end
|
||||||
|
|
||||||
function port(val)
|
function port(val)
|
||||||
val = tonumber(val)
|
val = tonumber(val)
|
||||||
return ( val and val >= 1 and val <= 65535 )
|
return ( val and val >= 0 and val <= 65535 )
|
||||||
end
|
end
|
||||||
|
|
||||||
function portrange(val)
|
function portrange(val)
|
||||||
|
|
Loading…
Reference in a new issue