Thanks for your reply.<br><br>This fix will be included in next release then, I guess.<br><br>BRs//William<br><br><div class="gmail_quote">On Mon, Jun 18, 2012 at 2:19 PM, Attila Rajmund Nohl <span dir="ltr"><<a href="mailto:attila.r.nohl@gmail.com" target="_blank">attila.r.nohl@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/6/18 William Yangzhuwei <<a href="mailto:mscame@gmail.com">mscame@gmail.com</a>>:<br>
<div class="im">> hello,<br>
><br>
> Once I try to connect with ssh with ip_v6_disabled = true, like following<br>
><br>
>  ssh:connect("some hostname",2022,[{user,"user"},<br>
>  {password,"pwd"},<br>
>  {user_interaction,false},<br>
>  {user_dir,"/tmp/tmp.6xqteJfWII"},<br>
>  {silently_accept_hosts,true},<br>
>  {ip_v6_disabled,true}],infinity)<br>
><br>
> I will got some error return<br>
><br>
> {error,<br>
><br>
> {eoptions,{ip_v6_disabled,true}}}<br>
><br>
><br>
> I have check the code of OTP,<br>
> These two lines looks strange.<br>
><br>
> handle_ssh_option({ip_v6_disabled, Value} = Opt) when is_function(Value) -><br>
>     Opt;<br>
><br>
> Why it must be a function?<br>
<br>
</div>That's a copy&paste error, fixed in this commit:<br>
<a href="https://github.com/erlang/otp/commit/b85e884f14e1dce52af7157045625f1ef5441ed1" target="_blank">https://github.com/erlang/otp/commit/b85e884f14e1dce52af7157045625f1ef5441ed1</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards <br>//William YangZhuwei<br><br>