@@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"os"
+ "reflect"
"sort"
"sync"
@@ -307,6 +308,10 @@ func UpdateHostFromClient(newHost, currHost *models.Host) (sendPeerUpdate bool)
sendPeerUpdate = true
isEndpointChanged = true
}
+ if !reflect.DeepEqual(currHost.Interfaces, newHost.Interfaces) {
+ currHost.Interfaces = newHost.Interfaces
+ sendPeerUpdate = true
+ }
if isEndpointChanged {
for _, nodeID := range currHost.Nodes {