diff options
author | Fredrik Gustafsson <[email protected]> | 2012-08-27 12:06:01 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2012-08-27 12:06:01 +0200 |
commit | 10328ca6308828b14da4d158542a73825c7664f4 (patch) | |
tree | 0753db5f4be9ab8349fb1791c50969dda952a338 /lib/ssh/src/ssh.erl | |
parent | 6d7b0601a7fb0936d3b24de081432600a7482b98 (diff) | |
parent | 3d70c115603add4d4a4c975a41bffa22b13e4c6f (diff) | |
download | otp-10328ca6308828b14da4d158542a73825c7664f4.tar.gz otp-10328ca6308828b14da4d158542a73825c7664f4.tar.bz2 otp-10328ca6308828b14da4d158542a73825c7664f4.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/ssh/src/ssh.erl')
-rw-r--r-- | lib/ssh/src/ssh.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl index f4a40c81a4..85f5f680e6 100644 --- a/lib/ssh/src/ssh.erl +++ b/lib/ssh/src/ssh.erl @@ -369,6 +369,8 @@ handle_option([{shell, _} = Opt | Rest], SocketOptions, SshOptions) -> handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); handle_option([{exec, _} = Opt | Rest], SocketOptions, SshOptions) -> handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); +handle_option([{auth_methods, _} = Opt | Rest], SocketOptions, SshOptions) -> + handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); handle_option([Opt | Rest], SocketOptions, SshOptions) -> handle_option(Rest, [handle_inet_option(Opt) | SocketOptions], SshOptions). @@ -408,6 +410,8 @@ handle_ssh_option({exec, {Module, Function, _}} = Opt) when is_atom(Module), is_atom(Function) -> Opt; +handle_ssh_option({auth_methods, Value} = Opt) when is_list(Value) -> + Opt; handle_ssh_option({infofun, Value} = Opt) when is_function(Value) -> Opt; handle_ssh_option({connectfun, Value} = Opt) when is_function(Value) -> |