add persistentkeepalive to ShouldPeersUpdate

This commit is contained in:
Matthew R Kasun 2022-01-24 13:20:23 -05:00
parent 0ced90ebd4
commit a5b9760438

View file

@ -245,6 +245,7 @@ func ShouldPeersUpdate(currentNode *models.Node, newNode *models.Node) bool {
newNode.IsRelay != currentNode.IsRelay ||
newNode.UDPHolePunch != currentNode.UDPHolePunch ||
newNode.IsPending != currentNode.IsPending ||
newNode.PersistentKeepalive != currentNode.PersistentKeepalive ||
len(newNode.ExcludedAddrs) != len(currentNode.ExcludedAddrs) ||
len(newNode.AllowedIPs) != len(currentNode.AllowedIPs) {
return true