diff options
author | Hans Nilsson <[email protected]> | 2017-05-09 18:38:35 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2017-05-12 11:53:11 +0200 |
commit | efbae4afb84ef03364a1de349d98413211946ad4 (patch) | |
tree | b70228d00f0e7b12f2e1d21f80ac6cd478c766d4 /lib/ssh/src/ssh_connection_handler.erl | |
parent | 773c4d4f0416f25e3c0c6939f8d0871dc4486bab (diff) | |
download | otp-efbae4afb84ef03364a1de349d98413211946ad4.tar.gz otp-efbae4afb84ef03364a1de349d98413211946ad4.tar.bz2 otp-efbae4afb84ef03364a1de349d98413211946ad4.zip |
ssh: Option 'auth_methods' available not only in server but also in client
Diffstat (limited to 'lib/ssh/src/ssh_connection_handler.erl')
-rw-r--r-- | lib/ssh/src/ssh_connection_handler.erl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl index 342583306b..39bd54869f 100644 --- a/lib/ssh/src/ssh_connection_handler.erl +++ b/lib/ssh/src/ssh_connection_handler.erl @@ -434,11 +434,7 @@ init_ssh_record(Role, Socket, Opts) -> init_ssh_record(Role, _Socket, PeerAddr, Opts) -> KeyCb = ?GET_OPT(key_cb, Opts), - AuthMethods = - case Role of - server -> ?GET_OPT(auth_methods, Opts); - client -> undefined - end, + AuthMethods = ?GET_OPT(auth_methods, Opts), S0 = #ssh{role = Role, key_cb = KeyCb, opts = Opts, |