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-Tag: 0.11.0~1228 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=757e9c2f1cb49b312322d29f8a4933ecedbbdaec;p=oweals%2Fluci.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 3c768ab76..93b29cba8 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)