aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_transport.erl
diff options
context:
space:
mode:
authorNiclas Eklund <[email protected]>2011-01-17 15:42:39 +0100
committerNiclas Eklund <[email protected]>2011-01-17 15:42:39 +0100
commit0fd3723a4d5a13ac381c36c14e5fb513363f68dd (patch)
tree93a4e06d3ed40779d4c3ac4a14ca156fea067416 /lib/ssh/src/ssh_transport.erl
parent86413606615440a7951b4c62162e2bfb87aa158c (diff)
downloadotp-0fd3723a4d5a13ac381c36c14e5fb513363f68dd.tar.gz
otp-0fd3723a4d5a13ac381c36c14e5fb513363f68dd.tar.bz2
otp-0fd3723a4d5a13ac381c36c14e5fb513363f68dd.zip
OTP-9031 - SSH did not handle the error reason enetunreach when trying to open a IPv6 connection.
Diffstat (limited to 'lib/ssh/src/ssh_transport.erl')
-rw-r--r--lib/ssh/src/ssh_transport.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl
index e79ccdda0c..de3e29e2f1 100644
--- a/lib/ssh/src/ssh_transport.erl
+++ b/lib/ssh/src/ssh_transport.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2004-2010. All Rights Reserved.
+%% Copyright Ericsson AB 2004-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -169,6 +169,8 @@ do_connect(Callback, Address, Port, SocketOpts, Timeout) ->
Callback:connect(Address, Port, lists:delete(inet6, Opts), Timeout);
{error, eafnosupport} ->
Callback:connect(Address, Port, lists:delete(inet6, Opts), Timeout);
+ {error, enetunreach} ->
+ Callback:connect(Address, Port, lists:delete(inet6, Opts), Timeout);
Other ->
Other
end.