mesh
mesh copied to clipboard
When passed a DNS name, InitiateConnection only resolves one record; all records would be better
https://github.com/weaveworks/mesh/blob/master/connection_maker.go#L96
If the host
part of a peer
is a DNS name, it'd be nice if that name were resolved and all resultant addresses were added to the list, instead of just one. This is a very common pattern in service discovery i.e. Consul.
(I'm not sure how this code would respond with a request to peer with oneself though?)
It would be useful in case of using dual stack (IPv4 and IPv6) too.