From 538ce08e1871cfa9e409455fd82f9f948635c135 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 21 Jan 2020 07:59:37 +0100 Subject: [PATCH] remove restriction on udp+ipv6 UDP+IPv6 has benn fixed since memcached-1.4.17 --- libmemcached/connect.cc | 7 ------- 1 file changed, 7 deletions(-) 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) { -- 2.30.2