commit bb8f952bef2c17da6518f5da60eb8ffff3dd3751
parent 582da7168a3ba16944b06c583d3f74f61c82d785
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 25 Mar 2014 11:55:32 +0000
Fix limiting by IPv6 address
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,6 @@
+Tue Mar 25 12:53:55 CET 2014
+ Fix limiting by IPv6 address. -EG
+
Tue Mar 25 09:06:13 CET 2014
Added more FD_SETSIZE checks.
Implemented FD_SETSIZE checks for W32. -EG
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -184,7 +184,7 @@ struct MHD_IPCount
* IPv4 address.
*/
struct in_addr ipv4;
-#if HAVE_IPV6
+#if HAVE_INET6
/**
* IPv6 address.
*/
@@ -269,7 +269,7 @@ MHD_ip_addr_to_key (const struct sockaddr *addr,
return MHD_YES;
}
-#if HAVE_IPV6
+#if HAVE_INET6
/* IPv6 addresses */
if (sizeof (struct sockaddr_in6) == addrlen)
{