projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea7f4cc
)
libs/web: fix "port" datatype to allow port 0
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 17 Mar 2011 17:40:40 +0000
(17:40 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 17 Mar 2011 17:40:40 +0000
(17:40 +0000)
libs/web/luasrc/cbi/datatypes.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/cbi/datatypes.lua
b/libs/web/luasrc/cbi/datatypes.lua
index 58b54de6e6370b166b9c39421d35de8de923f82b..b543d9fe5ee7287ba62397260d5aacd5e1ed4e9b 100644
(file)
--- 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)