Merge r4166
This commit is contained in:
parent
7cfd5cd27e
commit
1b460753ad
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ function network_get_addresses(net)
|
|||
local mav4 = state:get("network", net, "netmask")
|
||||
local ipv6 = state:get("network", net, "ip6addr")
|
||||
|
||||
if ipv4 and mav4 then
|
||||
if ipv4 and mav4 and #ipv4 > 0 and #mav4 > 0 then
|
||||
ipv4 = luci.ip.IPv4(ipv4, mav4)
|
||||
|
||||
if ipv4 then
|
||||
|
@ -168,4 +168,4 @@ function iface_get_network(iface)
|
|||
)
|
||||
|
||||
return net
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue