mirror of
https://github.com/notherealmarco/SLAACsense.git
synced 2025-03-13 13:25:22 +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()
|
||||
for e in leases["rows"]:
|
||||
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
|
||||
matches.add((e["address"], ip6s, e["hostname"]))
|
||||
return matches
|
||||
|
|
Loading…
Reference in a new issue