[erlang-questions] ip_v6_disabled cannot be set for ssh connection in OTP R15B01
Attila Rajmund Nohl
attila.r.nohl@REDACTED
Mon Jun 18 14:19:46 CEST 2012
2012/6/18 William Yangzhuwei <mscame@REDACTED>:
> hello,
>
> Once I try to connect with ssh with ip_v6_disabled = true, like following
>
> ssh:connect("some hostname",2022,[{user,"user"},
> {password,"pwd"},
> {user_interaction,false},
> {user_dir,"/tmp/tmp.6xqteJfWII"},
> {silently_accept_hosts,true},
> {ip_v6_disabled,true}],infinity)
>
> I will got some error return
>
> {error,
>
> {eoptions,{ip_v6_disabled,true}}}
>
>
> I have check the code of OTP,
> These two lines looks strange.
>
> handle_ssh_option({ip_v6_disabled, Value} = Opt) when is_function(Value) ->
> Opt;
>
> Why it must be a function?
That's a copy&paste error, fixed in this commit:
https://github.com/erlang/otp/commit/b85e884f14e1dce52af7157045625f1ef5441ed1
More information about the erlang-questions
mailing list