[erlang-bugs] ssh module v6 connect problem

Ingela Anderton Andin <>
Fri Sep 26 13:32:38 CEST 2008


Hi,

Thanks for reporting this, it has been fixed but in another way.

Regards Ingela Erlang/OTP - Ericsson

YAMASHINA Hio wrote:
> Hi.
>
> I found a bug around connecting to v6 host.
>
>   Host = "localhost",
>   Port = 22,
>   Ret2 = ssh:connect(Host, Port, [
>     {user_dir, "xxx" },
>     {user, "xxx" },
>     {password, "xxx" },
>     {silently_accept_hosts, true}
>   ]),
>
> Above invocation on ip-v6 enabled box will be::
>
>   Callback:connect(Address, Port, [{active, false} | SocketOpts], 
>    			 Timeout)
>   where Address    = {0,0,0,0, 0,0,0,1},
>         SocketOpts = [],
>         Callback   = gen_tcp
>
> This will fail with {error,nxdomain}.
> Because SocketOpts does not contain inet6 option.
>
> This problem should be fixed in gen_tcp module?
>
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> erlang-bugs mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-bugs




More information about the erlang-bugs mailing list