summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/get_ipv6_addr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/get_ipv6_addr.c b/src/get_ipv6_addr.c
index 0f22e29..341b5ba 100644
--- a/src/get_ipv6_addr.c
+++ b/src/get_ipv6_addr.c
@@ -25,7 +25,9 @@ const char *get_ipv6_addr() {
* replace this with any other host which has an AAAA record, but the
* K root server is a pretty safe bet. */
if (getaddrinfo("k.root-servers.net", "domain", &hints, &result) != 0) {
- perror("getaddrinfo()");
+ /* We don’t display the error here because most
+ * likely, there just is no connectivity.
+ * Thus, don’t spam the user’s console. */
return "no IPv6";
}