remove restriction on udp+ipv6
authorMichael Wallner <mike@php.net>
Tue, 21 Jan 2020 06:59:37 +0000 (07:59 +0100)
committerMichael Wallner <mike@php.net>
Tue, 21 Jan 2020 06:59:37 +0000 (07:59 +0100)
UDP+IPv6 has benn fixed since memcached-1.4.17

libmemcached/connect.cc

index 6d9003770b039eaa30606d43280e2936e100dc44..de28ea9a81862838fd417d0c17ff07a54a21d5c7 100644 (file)
@@ -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)
     {