File 0594-ssh-Fixup-fetching-own-IP.patch of Package erlang
From e92d3b40080dbd5c336d40e9a41cd659cdaf4cf7 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Wed, 6 Nov 2019 11:46:18 +0100
Subject: [PATCH] ssh: Fixup! fetching own IP
---
lib/ssh/test/ssh_compat_SUITE.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ssh/test/ssh_compat_SUITE.erl b/lib/ssh/test/ssh_compat_SUITE.erl
index 06ed9082cf..c42140cee7 100644
--- a/lib/ssh/test/ssh_compat_SUITE.erl
+++ b/lib/ssh/test/ssh_compat_SUITE.erl
@@ -812,7 +812,7 @@ iptoa(IP) -> inet_parse:ntoa(IP).
host_ip() ->
{ok,Name} = inet:gethostname(),
- {ok,#hostent{h_addr_list = [IP|_]}} = inet_res:gethostbyname(Name),
+ {ok,IP} = inet:ip(Name),
IP.
%%--------------------------------------------------------------------
--
2.16.4