|
@@ -226,7 +226,7 @@ func GetPeerUpdateForHost(network string, host *models.Host, allNodes []models.N
|
|
} else if host.EndpointIPv6 != nil && peerHost.EndpointIPv6 != nil {
|
|
} else if host.EndpointIPv6 != nil && peerHost.EndpointIPv6 != nil {
|
|
peerEndpoint = peerHost.EndpointIPv6
|
|
peerEndpoint = peerHost.EndpointIPv6
|
|
}
|
|
}
|
|
- if host.EndpointIP == nil {
|
|
|
|
|
|
+ if host.EndpointIP == nil && peerEndpoint == nil {
|
|
if peerHost.EndpointIP != nil {
|
|
if peerHost.EndpointIP != nil {
|
|
peerEndpoint = peerHost.EndpointIP
|
|
peerEndpoint = peerHost.EndpointIP
|
|
}
|
|
}
|