mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
Adds a sanity check to the local node info compare.
This commit is contained in:
parent
ff38197eaf
commit
56cbabff63
@ -368,7 +368,8 @@ func (l *localState) setSyncState() error {
|
||||
|
||||
// Check the node info (currently limited to tagged addresses since
|
||||
// everything else is managed by the Serf layer)
|
||||
if !reflect.DeepEqual(out1.NodeServices.Node.TaggedAddresses, l.config.TaggedAddresses) {
|
||||
if out1.NodeServices == nil || out1.NodeServices.Node == nil ||
|
||||
!reflect.DeepEqual(out1.NodeServices.Node.TaggedAddresses, l.config.TaggedAddresses) {
|
||||
l.nodeInfoInSync = false
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user