[BUGFIX] gateways and nexthop (ignore null address)
This commit is contained in:
parent
0c4e17406d
commit
9d3eb127aa
@ -184,6 +184,9 @@ func (nodes *Nodes) readIfaces(nodeinfo *data.NodeInfo) {
|
||||
}
|
||||
|
||||
for _, mac := range addresses {
|
||||
if mac == "" {
|
||||
continue
|
||||
}
|
||||
if oldNodeID, _ := nodes.ifaceToNodeID[mac]; oldNodeID != nodeID {
|
||||
if oldNodeID != "" {
|
||||
log.Printf("override nodeID from %s to %s on MAC address %s", oldNodeID, nodeID, mac)
|
||||
|
Loading…
Reference in New Issue
Block a user