aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@in.tum.de>2013-09-04 15:23:14 +0000
committerMatthias Wachs <wachs@in.tum.de>2013-09-04 15:23:14 +0000
commit9d5b72d0dd57eb3a366566c116f4f5c0805fab9a (patch)
tree52c95ff8c864306e7dd7a9fcc39b2bf286c1385a
parentb49eb1361d97478f5ae80f6b00e781a38aaee301 (diff)
downloadlibmicrohttpd-9d5b72d0dd57eb3a366566c116f4f5c0805fab9a.tar.gz
libmicrohttpd-9d5b72d0dd57eb3a366566c116f4f5c0805fab9a.zip
set IPV6_V6ONLY correctly when MHD_USE_IPv6 but not MHD_USE_DUAL_STACK
-rw-r--r--src/microhttpd/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index b8bb7b3d..900f7e4e 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -3232,7 +3232,7 @@ MHD_start_daemon_va (unsigned int flags,
3232 daemon->socket_fd = socket_fd; 3232 daemon->socket_fd = socket_fd;
3233 3233
3234 if ( (0 != (flags & MHD_USE_IPv6)) && 3234 if ( (0 != (flags & MHD_USE_IPv6)) &&
3235 (MHD_USE_DUAL_STACK == (flags & MHD_USE_DUAL_STACK)) ) 3235 (MHD_USE_DUAL_STACK != (flags & MHD_USE_DUAL_STACK)) )
3236 { 3236 {
3237#ifdef IPPROTO_IPV6 3237#ifdef IPPROTO_IPV6
3238#ifdef IPV6_V6ONLY 3238#ifdef IPV6_V6ONLY