mirror of https://github.com/aredn/aredn.git
Fix new mac extraction code in LQM was breaking for tunnels (#525)
This commit is contained in:
parent
93ad1f5ee7
commit
277610bf27
|
@ -231,7 +231,7 @@ function lqm()
|
||||||
-- Know our macs so we can exclude them
|
-- Know our macs so we can exclude them
|
||||||
local our_macs = {}
|
local our_macs = {}
|
||||||
for _, i in ipairs(nixio.getifaddrs()) do
|
for _, i in ipairs(nixio.getifaddrs()) do
|
||||||
if i.family == "packet" then
|
if i.family == "packet" and i.addr then
|
||||||
our_macs[i.addr] = true
|
our_macs[i.addr] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue