diff options
author | June McEnroe <june@causal.agency> | 2021-09-23 22:41:15 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-09-23 22:41:15 -0400 |
commit | ab3a6ba0fdf2424103ce50aaf594813e77539e7e (patch) | |
tree | 581d3ada7ea13a7b44841a438a4e8c8483c66c52 | |
parent | Make up build away from FreeBSD (diff) | |
download | src-ab3a6ba0fdf2424103ce50aaf594813e77539e7e.tar.gz src-ab3a6ba0fdf2424103ce50aaf594813e77539e7e.zip |
Use NI_NUMERICSERV
-rw-r--r-- | bin/quick.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/quick.c b/bin/quick.c index 040e1bfb..ae2c99fa 100644 --- a/bin/quick.c +++ b/bin/quick.c @@ -152,7 +152,7 @@ int main(int argc, char *argv[]) { error = getnameinfo( (struct sockaddr *)&addr, addrlen, host, sizeof(host), serv, sizeof(serv), - NI_NOFQDN + NI_NOFQDN | NI_NUMERICSERV ); if (error) errx(EX_UNAVAILABLE, "getnameinfo: %s", gai_strerror(error)); printf("http://%s:%s/\n", host, serv); |