From 1afe0a79930880e8940b42fc0dd64aa34c3d9d5f Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 7 Apr 2013 20:40:29 +0200 Subject: [PATCH] Document GNU libc lossage in listen_addr doc string Systems using GNU libc such as Linux are frequently configured in a way getaddrinfo(NULL, ...) put the IPv4 wildcard "0.0.0.0" *before* the IPv6 wildcard "::" in the result. Because of that, listen_addr "" listens only on all IPv4 addresses. Workaround: listen_addr "::". Document it in listen_addr's doc string. --- include/econfig-spec.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/econfig-spec.h b/include/econfig-spec.h index 1cfa8b14..6935ed7e 100644 --- a/include/econfig-spec.h +++ b/include/econfig-spec.h @@ -88,7 +88,10 @@ EMPCF_COMMENT("# \"\" listens on all, localhost just on the loopback interface.\ "# OpenBSD restriction: when the system has both IPv4 and IPv6\n" "# addresses configured, \"\" listens on all IPv4 addresses, and \"::\"\n" "# on all IPv6 addresses. There is no way to listen both on all IPv4\n" - "# and on all IPv6 interfaces.") + "# and on all IPv6 interfaces.\n" + "# Systems using GNU libc such as Linux are frequently configured in a\n" + "# way that makes listen_addr "" listen only on all IPv4 addresses.\n" + "# You need to use \"::\" to listen on all IPv4 and IPv6 addresses.") EMPCFBOTH("port", loginport, char *, NSC_STRING, KM_INTERNAL, "TCP port the server will bind") EMPCFBOTH("keep_journal", keep_journal, int, NSC_INT, KM_INTERNAL,