keep IPv4 addrs as IPv4

This commit is contained in:
2024-04-21 15:56:21 -04:00
parent fda5648046
commit 4dd06a2969
-1
View File
@@ -264,7 +264,6 @@ class Host:
# called when reloading class from pickle, add new fields here # called when reloading class from pickle, add new fields here
def fixup(self): def fixup(self):
for c in ["IPv4", "IPv6"]: for c in ["IPv4", "IPv6"]:
print("Host %s" % self.name)
if c in self.connections: if c in self.connections:
addr = self.connections[c].addr addr = self.connections[c].addr
if addr[0:7] == "::ffff:": if addr[0:7] == "::ffff:":