summaryrefslogtreecommitdiff
path: root/src/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/udp.c')
-rw-r--r--src/udp.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/udp.c b/src/udp.c
index 11d412d..753e8ac 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -102,14 +102,15 @@ int udp_init(udp_socket_t* sock, const char* local_addr, const char* port, resol
return -1;
}
-#ifdef NO_V4MAPPED
- if(res->ai_family == AF_INET6) {
- log_printf(NOTICE, "disabling V4-Mapped addresses");
- int on = 1;
- if(setsockopt(sock->fd_, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)))
- log_printf(ERROR, "Error on setting IPV6_V6ONLY socket option: %s", strerror(errno));
- }
-#endif
+/* this doesn't work on linux ?? */
+/* #ifdef NO_V4MAPPED */
+/* if(res->ai_family == AF_INET6) { */
+/* log_printf(NOTICE, "disabling V4-Mapped addresses"); */
+/* int on = 1; */
+/* if(setsockopt(sock->fd_, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on))) */
+/* log_printf(ERROR, "Error on setting IPV6_V6ONLY socket option: %s", strerror(errno)); */
+/* } */
+/* #endif */
freeaddrinfo(res);
return 0;