From e3dd461d04a32b706a820b74712f8bc39ce91968 Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Fri, 6 Feb 2026 19:49:21 -0500 Subject: [PATCH] fix order of AFs --- hbd/hbdclass.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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