summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-23 22:41:15 -0400
committerJune McEnroe <june@causal.agency>2021-09-23 22:41:15 -0400
commit8121c09c4a144dc281638d9b50b655a11755900b (patch)
tree98ba3fc62744a877cc50733f99bfe81e05fc9ecf
parentMake up build away from FreeBSD (diff)
downloadsrc-8121c09c4a144dc281638d9b50b655a11755900b.tar.gz
src-8121c09c4a144dc281638d9b50b655a11755900b.zip
Use NI_NUMERICSERV
-rw-r--r--bin/quick.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/quick.c b/bin/quick.c
index 150eaf62..b5b4aa3d 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);
e toolJune McEnroe Choose the version with the most recent access if the modify times are the same. 2017-08-31Choose B for tiles with equal modify timesJune McEnroe This way newer access counts and times will be preserved. 2017-08-31Add quick data file merge toolJune McEnroe Hopefully I won't have to use it ever again. 2017-08-30Use only foreground color for selecting spawnJune McEnroe 2017-08-29Add four additional spawnsJune McEnroe 2017-08-28Add respawningJune McEnroe 2017-08-26Move license above includesJune McEnroe Why was it down there? 2017-08-26Snapshot metadataJune McEnroe 2017-08-26Add meta.c to READMEJune McEnroe 2017-08-26Use MakefileJune McEnroe