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:
parent
c1e6906fc8
commit
c2ac541f43
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue