Display the IP address while connecting

Instead of resolving the domain name.
This commit is contained in:
Přemysl Eric Janouch 2015-04-08 19:49:09 +02:00
parent 4b56f09ea6
commit 01757df58f
1 changed files with 1 additions and 1 deletions

View File

@ -956,7 +956,7 @@ backend_ws_establish_connection (struct app_context *ctx,
// we don't really need this, so we can let it quietly fail
char buf[NI_MAXHOST];
err = getnameinfo (gai_iter->ai_addr, gai_iter->ai_addrlen,
buf, sizeof buf, NULL, 0, 0);
buf, sizeof buf, NULL, 0, NI_NUMERICHOST);
if (err)
print_debug ("%s: %s", "getnameinfo", gai_strerror (err));
else