From c2ac541f430a6a41be6169d136a29081e8979c96 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 29 Oct 2021 15:30:43 +0100 Subject: [PATCH] client: connect3: show what we are trying to connect to Make it visible what we are currently attempting to connect to as a numeric ipv4/ipv6 address. --- lib/core-net/client/connect3.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/core-net/client/connect3.c b/lib/core-net/client/connect3.c index e4d4cd23d..f0e60583b 100644 --- a/lib/core-net/client/connect3.c +++ b/lib/core-net/client/connect3.c @@ -480,6 +480,13 @@ ads_known: goto failed1; } + { + char buf[64]; + + lws_sa46_write_numeric_address((lws_sockaddr46 *)psa, buf, sizeof(buf)); + lwsl_wsi_notice(wsi, "trying %s", buf); + } + #if defined(LWS_WITH_SYS_FAULT_INJECTION) cfail = lws_fi(&wsi->fic, "connfail"); if (cfail)