summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-03-17 17:40:40 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-03-17 17:40:40 +0000
commit8ea7eb86151cacf4bb653658267ffdfbadbab09d (patch)
tree5a4783f43b6828a1e7ed93ed90c6062ea3de5414 /libs/web/luasrc/cbi
parentea7f4ccb9fb531d69e6c50e76e37c59d853357e5 (diff)
libs/web: fix "port" datatype to allow port 0
Diffstat (limited to 'libs/web/luasrc/cbi')
-rw-r--r--libs/web/luasrc/cbi/datatypes.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/cbi/datatypes.lua b/libs/web/luasrc/cbi/datatypes.lua
index 58b54de6e6..b543d9fe5e 100644
--- a/libs/web/luasrc/cbi/datatypes.lua
+++ b/libs/web/luasrc/cbi/datatypes.lua
@@ -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)