From 714239bef937ca6f7c1d1cab4fb21e1f1b473942 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Mon, 13 May 2024 23:16:50 +0200 Subject: [PATCH] Fix not adding records if host is IPv4 only --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index d5b462d..6c8870f 100644 --- a/main.py +++ b/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