[erlang-bugs] ssh module v6 connect problem

YAMASHINA Hio hio@REDACTED
Thu Sep 25 07:00:42 CEST 2008


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?



-- 
YAMASHINA Hio <hio@REDACTED>, <hio@REDACTED>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ssh-1.0.fix-connectopt.patch
Type: application/octet-stream
Size: 1358 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080925/babe6b10/attachment.obj>


More information about the erlang-bugs mailing list