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