aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-06-02 08:37:13 +0200
committerHans Nilsson <[email protected]>2016-06-02 08:37:13 +0200
commitfba5d467360c18d58ddf664c581dd7e78823a4d4 (patch)
treedff0126aa6517fe5de43519b77574ecc8b644154
parent875782025e19047bc8c25da8ed1c121a33521d71 (diff)
downloadotp-fba5d467360c18d58ddf664c581dd7e78823a4d4.tar.gz
otp-fba5d467360c18d58ddf664c581dd7e78823a4d4.tar.bz2
otp-fba5d467360c18d58ddf664c581dd7e78823a4d4.zip
ssh: fix ssh_connection_SUITE error on Windows
-rw-r--r--lib/ssh/test/ssh_connection_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
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"},