Fix new mac extraction code in LQM was breaking for tunnels (#525)

This commit is contained in:
Tim Wilkinson 2022-10-14 13:29:40 -07:00 committed by GitHub
parent 93ad1f5ee7
commit 277610bf27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ function lqm()
-- Know our macs so we can exclude them
local our_macs = {}
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
end
end