From bb8f952bef2c17da6518f5da60eb8ffff3dd3751 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Tue, 25 Mar 2014 11:55:32 +0000 Subject: [PATCH] Fix limiting by IPv6 address --- ChangeLog | 3 +++ src/microhttpd/daemon.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3f390f57..97ac4924 100644 --- 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 index 1c058da0..5d58fa9e 100644 --- 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) {