From fba5d467360c18d58ddf664c581dd7e78823a4d4 Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Thu, 2 Jun 2016 08:37:13 +0200 Subject: ssh: fix ssh_connection_SUITE error on Windows --- lib/ssh/test/ssh_connection_SUITE.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/ssh/test/ssh_connection_SUITE.erl b/lib/ssh/test/ssh_connection_SUITE.erl index 105cd6def5..a52633a269 100644 --- a/lib/ssh/test/ssh_connection_SUITE.erl +++ b/lib/ssh/test/ssh_connection_SUITE.erl @@ -545,10 +545,10 @@ start_shell_sock_daemon_exec(Config) -> SysDir = proplists:get_value(data_dir, Config), {ok,Sl} = gen_tcp:listen(0, [{active,false}]), - {ok,{IP,Port}} = inet:sockname(Sl), + {ok,{_IP,Port}} = inet:sockname(Sl), % _IP is likely to be {0,0,0,0}. Win don't like... spawn_link(fun() -> - {ok,Ss} = gen_tcp:connect(IP,Port, [{active,false}]), + {ok,Ss} = gen_tcp:connect("localhost", Port, [{active,false}]), {ok, Pid} = ssh:daemon(Ss, [{system_dir, SysDir}, {user_dir, UserDir}, {password, "morot"}, -- cgit v1.2.3