diff options
author | Hans Nilsson <[email protected]> | 2016-04-15 10:57:23 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2016-04-27 13:36:53 +0200 |
commit | c37f0b1ccb54fd76311259eaa747424d77e76559 (patch) | |
tree | afbf5f4985fa4e83d0f9571232ebb60a8aa6edb9 /lib/ssh/test/ssh_trpt_test_lib.erl | |
parent | 9ec2d2fcd17484163296b15315c18ab4509d0629 (diff) | |
download | otp-c37f0b1ccb54fd76311259eaa747424d77e76559.tar.gz otp-c37f0b1ccb54fd76311259eaa747424d77e76559.tar.bz2 otp-c37f0b1ccb54fd76311259eaa747424d77e76559.zip |
ssh: refactor connection handler initialization
Diffstat (limited to 'lib/ssh/test/ssh_trpt_test_lib.erl')
-rw-r--r-- | lib/ssh/test/ssh_trpt_test_lib.erl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/ssh/test/ssh_trpt_test_lib.erl b/lib/ssh/test/ssh_trpt_test_lib.erl index 4269529ae8..e34071af99 100644 --- a/lib/ssh/test/ssh_trpt_test_lib.erl +++ b/lib/ssh/test/ssh_trpt_test_lib.erl @@ -294,12 +294,11 @@ instantiate(X, _S) -> %%%================================================================ %%% init_ssh(Role, Socket, Options0) -> - Options = [{user_interaction,false} + Options = [{user_interaction, false}, + {vsn, {2,0}}, + {id_string, "ErlangTestLib"} | Options0], - ssh_connection_handler:init_ssh(Role, - {2,0}, - lists:concat(["SSH-2.0-ErlangTestLib ",Role]), - Options, Socket). + ssh_connection_handler:init_ssh_record(Role, Socket, Options). mangle_opts(Options) -> SysOpts = [{reuseaddr, true}, |