summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/quick.c2
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);