From: Markus Armbruster Date: Sun, 7 Apr 2013 18:40:29 +0000 (+0200) Subject: Document GNU libc lossage in listen_addr doc string X-Git-Tag: v4.3.31~49 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=1afe0a79930880e8940b42fc0dd64aa34c3d9d5f 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. --- diff --git a/include/econfig-spec.h b/include/econfig-spec.h index 1cfa8b148..6935ed7eb 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,