summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_peer_discovery_dns.erl9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/rabbit_peer_discovery_dns.erl b/src/rabbit_peer_discovery_dns.erl
index 4005704550..b7c623ee55 100644
--- a/src/rabbit_peer_discovery_dns.erl
+++ b/src/rabbit_peer_discovery_dns.erl
@@ -68,13 +68,8 @@ discover_nodes(SeedHostname, LongNamesUsed) ->
H <- discover_hostnames(SeedHostname, LongNamesUsed)].
discover_hostnames(SeedHostname, LongNamesUsed) ->
- case lookup(SeedHostname, LongNamesUsed, ipv4) of
- [] ->
- rabbit_log:info("Hostnames lookup failed for IPv4, trying IPv6"),
- lookup(SeedHostname, LongNamesUsed, ipv6);
- Hosts4 -> Hosts4
- end.
-
+ lookup(SeedHostname, LongNamesUsed, ipv4) ++
+ lookup(SeedHostname, LongNamesUsed, ipv6).
decode_record(ipv4) ->
a;