summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-02-20 14:42:35 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-02-20 14:42:35 +0000
commit72fac8f90f8471647ba0e63485b1056c7e5efc9a (patch)
tree9b1e120330d3a611413315d872894236811d9e99
parenta9db1f2b7423a2a95c3832ca3df7c3a2d5e621d2 (diff)
libs/core: ensure that luci.model.network.network._ip() always returns a table if a list was requested
-rw-r--r--libs/core/luasrc/model/network.lua2
1 files changed, 1 insertions, 1 deletions
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