1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

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.
This commit is contained in:
Andy Green 2021-10-29 15:30:43 +01:00
parent c1e6906fc8
commit c2ac541f43

View file

@ -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)