From 757e9c2f1cb49b312322d29f8a4933ecedbbdaec Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 16 Dec 2011 01:18:34 +0000 Subject: [PATCH] libs/web: add missing parts of previous commit --- libs/web/luasrc/cbi/datatypes.lua | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.25.1