From: Michael Wallner Date: Tue, 21 Jan 2020 06:59:37 +0000 (+0100) Subject: remove restriction on udp+ipv6 X-Git-Tag: pre_cmake~30 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=538ce08e1871cfa9e409455fd82f9f948635c135;p=m6w6%2Flibmemcached remove restriction on udp+ipv6 UDP+IPv6 has benn fixed since memcached-1.4.17 --- diff --git a/libmemcached/connect.cc b/libmemcached/connect.cc index 6d900377..de28ea9a 100644 --- a/libmemcached/connect.cc +++ b/libmemcached/connect.cc @@ -537,13 +537,6 @@ static memcached_return_t network_connect(memcached_instance_st* server) /* Create the socket */ while (server->address_info_next and server->fd == INVALID_SOCKET) { - /* Memcache server does not support IPV6 in udp mode, so skip if not ipv4 */ - if (memcached_is_udp(server->root) and server->address_info_next->ai_family != AF_INET) - { - server->address_info_next= server->address_info_next->ai_next; - continue; - } - int type= server->address_info_next->ai_socktype; if (SOCK_CLOEXEC != 0) {