Skip to content

Commit

Permalink
bmx6hosts: avoid fd66:66:66:ff00 special IPs
Browse files Browse the repository at this point in the history
Signed-off-by: Pau Escrich <p4u@dabax.net>
  • Loading branch information
p4u committed Mar 27, 2017
1 parent 60b045b commit 9a28d84
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/lime-proto-bmx6/src/bmx6hosts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ end
end

local function extract_ips(HNA6_EXTENSION)
return HNA6_EXTENSION.address
-- Workaround to avoid bmx6 special IP
if string.find(HNA6_EXTENSION.address,"fd66:66:66:ff00:") then
return nil
else
return HNA6_EXTENSION.address
end
end

local function only_HNA6_EXTENSION(obj)
Expand Down Expand Up @@ -72,7 +77,7 @@ for i=1, o_count do

local ips = get_ipv6_ips(readAll(filename))
for k, ip in ipairs(ips) do
print (ip.." "..hostname..'.mesh')
if ip ~= nil then print (ip.." "..hostname..'.mesh') end
end
end

Expand Down

0 comments on commit 9a28d84

Please sign in to comment.