projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdcfb55
)
libs/web: add missing parts of previous commit
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 16 Dec 2011 01:18:34 +0000
(
01:18
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 16 Dec 2011 01:18:34 +0000
(
01:18
+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 3c768ab7623e03885eb8a3b735541d7b1a0d2e5e..93b29cba81d2c54afaae2479417f74551a2a8704 100644
(file)
--- a/
libs/web/luasrc/cbi/datatypes.lua
+++ b/
libs/web/luasrc/cbi/datatypes.lua
@@
-154,6
+154,10
@@
function host(val)
return hostname(val) or ipaddr(val)
end
+function network(val)
+ return uciname(val) or host(val)
+end
+
function wpakey(val)
if #val == 64 then
return (val:match("^[a-fA-F0-9]+$") ~= nil)