mirror of
https://github.com/notherealmarco/SLAACsense.git
synced 2025-03-14 06:06:15 +01:00
Fix not adding records if host is IPv4 only
This commit is contained in:
parent
4c856aad39
commit
714239bef9
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -36,7 +36,7 @@ def build_matches(ndp, leases):
|
||||||
matches = set()
|
matches = set()
|
||||||
for e in leases["rows"]:
|
for e in leases["rows"]:
|
||||||
ip6s = tuple(x["ip"].split("%")[0] for x in ndp["rows"] if x["mac"] == e["mac"])
|
ip6s = tuple(x["ip"].split("%")[0] for x in ndp["rows"] if x["mac"] == e["mac"])
|
||||||
if len(ip6s) == 0:
|
if len(ip6s) == 0 and not DO_V4:
|
||||||
continue
|
continue
|
||||||
matches.add((e["address"], ip6s, e["hostname"]))
|
matches.add((e["address"], ip6s, e["hostname"]))
|
||||||
return matches
|
return matches
|
||||||
|
|
Loading…
Reference in a new issue