aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-04-08 19:49:09 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-04-08 19:49:09 +0200
commit01757df58fcec75f991a8cbce64d7c1b81ca325e (patch)
treeea89018617d9892508371fc263cd5db86eeac66b
parent4b56f09ea6ba18ae6c48cf2368e189b6f7688c46 (diff)
downloadjson-rpc-shell-01757df58fcec75f991a8cbce64d7c1b81ca325e.tar.gz
json-rpc-shell-01757df58fcec75f991a8cbce64d7c1b81ca325e.tar.xz
json-rpc-shell-01757df58fcec75f991a8cbce64d7c1b81ca325e.zip
Display the IP address while connecting
Instead of resolving the domain name.
-rw-r--r--json-rpc-shell.c2
1 files changed, 1 insertions, 1 deletions
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