Use plain TaggedAddressWAN

This commit is contained in:
freddygv 2022-10-19 16:32:44 -06:00
parent 8d211cc9cc
commit 6d9be5fb15
1 changed files with 0 additions and 5 deletions

View File

@ -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
}