diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2012-04-16 14:17:31 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2012-04-16 14:17:31 +0100 |
| commit | 1c468a81a9582a809ba887ad23679791ac57745e (patch) | |
| tree | 25637b56489b27f57582ca627e4b4106012884d8 /src | |
| parent | 0e1663efbfc9d2e46b7efc91fda62b86fe597bbe (diff) | |
| download | rabbitmq-server-git-1c468a81a9582a809ba887ad23679791ac57745e.tar.gz | |
eprotonosupport support.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_networking.erl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl index 825d1bb1e0..f0c75d23f4 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. |
