mirror of
https://github.com/openwrt/luci.git
synced 2026-09-01 19:01:51 +04:00
libs/web: fix "port" datatype to allow port 0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user