diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-17 17:40:40 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-17 17:40:40 +0000 |
commit | 8ea7eb86151cacf4bb653658267ffdfbadbab09d (patch) | |
tree | 5a4783f43b6828a1e7ed93ed90c6062ea3de5414 /libs/web/luasrc | |
parent | ea7f4ccb9fb531d69e6c50e76e37c59d853357e5 (diff) |
libs/web: fix "port" datatype to allow port 0
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r-- | libs/web/luasrc/cbi/datatypes.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/cbi/datatypes.lua b/libs/web/luasrc/cbi/datatypes.lua index 58b54de6e..b543d9fe5 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) |