mirror of https://github.com/status-im/consul.git
Use plain TaggedAddressWAN
This commit is contained in:
parent
8d211cc9cc
commit
6d9be5fb15
|
@ -207,14 +207,9 @@ func meshGatewayAdresses(state *state.Store, ws memdb.WatchSet, wan bool) ([]str
|
||||||
|
|
||||||
func parseNodeAddr(node *structs.ServiceNode) string {
|
func parseNodeAddr(node *structs.ServiceNode) string {
|
||||||
// Prefer the wan address
|
// Prefer the wan address
|
||||||
if v, ok := node.TaggedAddresses[structs.TaggedAddressWANIPv4]; ok {
|
|
||||||
return v
|
|
||||||
}
|
|
||||||
|
|
||||||
if v, ok := node.TaggedAddresses[structs.TaggedAddressWAN]; ok {
|
if v, ok := node.TaggedAddresses[structs.TaggedAddressWAN]; ok {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
return node.Address
|
return node.Address
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue