summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/get_ipv6_addr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/get_ipv6_addr.c b/src/get_ipv6_addr.c
index 2fd978b..aa09d3a 100644
--- a/src/get_ipv6_addr.c
+++ b/src/get_ipv6_addr.c
@@ -41,7 +41,10 @@ const char *get_ipv6_addr() {
* it saves the local address with which packets would
* be sent to the destination. */
if (connect(fd, resp->ai_addr, resp->ai_addrlen) == -1) {
- perror("connect()");
+ /* We don’t display the error here because most
+ * likely, there just is no IPv6 connectivity.
+ * Thus, don’t spam the user’s console but just
+ * try the next address. */
(void)close(fd);
continue;
}