]> git.sur5r.net Git - i3/i3status/blobdiff - src/get_ipv6_addr.c
Don’t display an error message if getaddrinfo() fails for getting the IPv6 addr ...
[i3/i3status] / src / get_ipv6_addr.c
index 0f22e29a80b2fd359fa05b4729e36d7092ae7780..341b5ba8ac4fde12a3e9ebb91e02af3ab0545803 100644 (file)
@@ -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";
         }