[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34774 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34774 - gnunet/src/transport |
Date: |
Tue, 23 Dec 2014 23:15:22 +0100 |
Author: grothoff
Date: 2014-12-23 23:15:22 +0100 (Tue, 23 Dec 2014)
New Revision: 34774
Modified:
gnunet/src/transport/plugin_transport_http_server.c
Log:
-fix call to MHD_start_daemon, properly pass MHD_USE_IPv6 if needed
Modified: gnunet/src/transport/plugin_transport_http_server.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_server.c 2014-12-23 22:09:36 UTC
(rev 34773)
+++ gnunet/src/transport/plugin_transport_http_server.c 2014-12-23 22:15:22 UTC
(rev 34774)
@@ -2199,11 +2199,13 @@
*
* @param plugin our plugin
* @param addr listen address to use
+ * @param v6 MHD_NO_FLAG or MHD_USE_IPv6, depending on context
* @return NULL on error
*/
static struct MHD_Daemon *
run_mhd_start_daemon (struct HTTP_Server_Plugin *plugin,
- const struct sockaddr_in *addr)
+ const struct sockaddr_in *addr,
+ int v6)
{
struct MHD_Daemon *server;
unsigned int timeout;
@@ -2226,7 +2228,8 @@
#if BUILD_HTTPS
MHD_USE_SSL |
#endif
- MHD_USE_SUSPEND_RESUME,
+ MHD_USE_SUSPEND_RESUME |
+ v6,
plugin->port,
&server_accept_cb, plugin,
&server_access_cb, plugin,
@@ -2306,7 +2309,8 @@
{
plugin->server_v4
= run_mhd_start_daemon (plugin,
- (const struct sockaddr_in *)
plugin->server_addr_v4);
+ (const struct sockaddr_in *)
plugin->server_addr_v4,
+ MHD_NO_FLAG);
if (NULL == plugin->server_v4)
{
@@ -2327,7 +2331,8 @@
{
plugin->server_v6
= run_mhd_start_daemon (plugin,
- (const struct sockaddr_in *)
plugin->server_addr_v6);
+ (const struct sockaddr_in *)
plugin->server_addr_v6,
+ MHD_USE_IPv6);
if (NULL == plugin->server_v6)
{
LOG (GNUNET_ERROR_TYPE_ERROR,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34774 - gnunet/src/transport,
gnunet <=