From 01757df58fcec75f991a8cbce64d7c1b81ca325e Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Wed, 8 Apr 2015 19:49:09 +0200 Subject: Display the IP address while connecting Instead of resolving the domain name. --- json-rpc-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-rpc-shell.c b/json-rpc-shell.c index f42fa15..10b3dd5 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -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 -- cgit v1.2.3-70-g09d2