diff options
author | Erlang/OTP <[email protected]> | 2011-01-24 08:42:57 +0100 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2011-01-24 08:42:57 +0100 |
commit | a261e2982b7cd5d0101c8c04b76c10c8dad64dd3 (patch) | |
tree | 3ab7293dd146a7a3cb3b9efd24a271a3c5eeefc2 /lib/ssh/src/ssh_transport.erl | |
parent | 6deca2a989772f261b59f11da031832f1ea9c45d (diff) | |
parent | c921fa494f7af964fb20aa344fbeefaf8f06d48e (diff) | |
download | otp-a261e2982b7cd5d0101c8c04b76c10c8dad64dd3.tar.gz otp-a261e2982b7cd5d0101c8c04b76c10c8dad64dd3.tar.bz2 otp-a261e2982b7cd5d0101c8c04b76c10c8dad64dd3.zip |
Merge branch 'nick/ssh/inet6_enetunreach/OTP-9031' into maint-r14
* nick/ssh/inet6_enetunreach/OTP-9031:
Updated notes file.
Added updated modules to the appup file.
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.erl | 4 |
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. |