diff --git a/hbd/hbdclass.py b/hbd/hbdclass.py index ed7e16d..5c9698e 100644 --- a/hbd/hbdclass.py +++ b/hbd/hbdclass.py @@ -221,7 +221,9 @@ class Host: for d in self.__dict__: if d == "connections": cl = [] - for c in self.connections: + for c in ["IPv4", "IPv6"]: + if c not in self.connections: + continue # dirty ugly hack: fix conn to host backpointer cld = copy.deepcopy(self.connections[c].__dict__) cld["host"] = cld["host"].name