summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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