We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 316ea60 commit ad39960Copy full SHA for ad39960
flow/include/flow/network.h
@@ -736,6 +736,8 @@ class INetworkConnections {
736
return static_cast<INetworkConnections*>((void*)g_network->global(INetwork::enNetworkConnections));
737
}
738
739
+ // If a DNS name can be resolved to both and IPv4 and IPv6 addresses, we want IPv6 addresses when running the clusters on IPv6.
740
+ // This function takes a vector of addresses and return a random one, preferring IPv6 over IPv4.
741
static NetworkAddress pickOneAddress(const std::vector<NetworkAddress>& addresses) {
742
std::vector<NetworkAddress> ipV6Addresses;
743
for (const NetworkAddress& addr : addresses) {
0 commit comments