summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-04-16 14:17:31 +0100
committerSimon MacMullen <simon@rabbitmq.com>2012-04-16 14:17:31 +0100
commit5a1154d8c241130f506cf6f65b5e97ec197b28c9 (patch)
tree25637b56489b27f57582ca627e4b4106012884d8
parent6d72043cd841d13e7ac3f2980e62671053cda691 (diff)
downloadrabbitmq-server-bug24869.tar.gz
eprotonosupport support.bug24869
-rw-r--r--src/rabbit_networking.erl11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl
index 825d1bb1..f0c75d23 100644
--- a/src/rabbit_networking.erl
+++ b/src/rabbit_networking.erl
@@ -446,16 +446,19 @@ ipv6_status(TestPort) ->
{ok, LSock4} -> gen_tcp:close(LSock4),
single_stack;
%% IPv6-only machine. Welcome to the future.
- {error, eafnosupport} -> ipv6_only;
+ {error, eafnosupport} -> ipv6_only; %% Linux
+ {error, eprotonosupport}-> ipv6_only; %% FreeBSD
%% Dual stack machine with something already
%% on IPv4.
{error, _} -> ipv6_status(TestPort + 1)
end
end;
- {error, eafnosupport} ->
- %% IPv4-only machine. Welcome to the 90s.
+ %% IPv4-only machine. Welcome to the 90s.
+ {error, eafnosupport} -> %% Linux
ipv4_only;
+ {error, eprotonosupport} -> %% FreeBSD
+ ipv4_only;
+ %% Port in use
{error, _} ->
- %% Port in use
ipv6_status(TestPort + 1)
end.