mirror of
https://github.com/status-im/consul.git
synced 2025-01-23 20:19:29 +00:00
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 {
|
||||
// Prefer the wan address
|
||||
if v, ok := node.TaggedAddresses[structs.TaggedAddressWANIPv4]; ok {
|
||||
return v
|
||||
}
|
||||
|
||||
if v, ok := node.TaggedAddresses[structs.TaggedAddressWAN]; ok {
|
||||
return v
|
||||
}
|
||||
|
||||
return node.Address
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user