From 72fac8f90f8471647ba0e63485b1056c7e5efc9a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 20 Feb 2011 14:42:35 +0000 Subject: [PATCH] libs/core: ensure that luci.model.network.network._ip() always returns a table if a list was requested --- libs/core/luasrc/model/network.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua index 911d2a7fc..3c0964841 100644 --- a/libs/core/luasrc/model/network.lua +++ b/libs/core/luasrc/model/network.lua @@ -478,7 +478,7 @@ end function network._ip(self, opt, family, list) local ip = uci_s:get("network", self.sid, opt) local fc = (family == 6) and ipc.IPv6 or ipc.IPv4 - if ip then + if ip or list then if list then local l = { } for ip in utl.imatch(ip) do -- 2.25.1