daemon: fixed issue bringing back addresses with no broadcast on rj45 nodes

This commit is contained in:
Blake Harnden 2023-06-12 10:00:38 -07:00
parent e0e4b05b7f
commit e60b0f0de1

View file

@ -171,7 +171,10 @@ class Rj45Node(CoreNodeBase):
if "UP" in flags:
self.old_up = True
elif items[0] == "inet":
self.old_addrs.append((items[1], items[3]))
broadcast = None
if items[2] == "brd":
broadcast = items[3]
self.old_addrs.append((items[1], broadcast))
elif items[0] == "inet6":
if items[1][:4] == "fe80":
continue