From: Jo-Philipp Wich Date: Fri, 16 Dec 2011 01:18:34 +0000 (+0000) Subject: libs/web: add missing parts of previous commit X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=757e9c2f1cb49b312322d29f8a4933ecedbbdaec;p=openwrt-luci.git libs/web: add missing parts of previous commit --- diff --git a/libs/web/luasrc/cbi/datatypes.lua b/libs/web/luasrc/cbi/datatypes.lua index 3c768ab762..93b29cba81 100644 --- 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)