From: Matthias Wachs Date: Tue, 2 Jul 2013 11:46:25 +0000 (+0000) Subject: fix network type for external hostnames in http_server X-Git-Tag: initial-import-from-subversion-38251~8540 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dc34426517674ff86db7860eb11d4db65dea58d8;p=oweals%2Fgnunet.git fix network type for external hostnames in http_server --- diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 8f4b5bbeb..b7967296f 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -1109,7 +1109,9 @@ server_lookup_connection (struct HTTP_Server_Plugin *plugin, ats = plugin->env->get_address_type (plugin->env->cls, conn_info->client_addr, sizeof (struct sockaddr_in6)); break; default: - GNUNET_break (0); + /* external host name */ + ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); + ats.type = htonl (GNUNET_ATS_NET_WAN); return NULL; } GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,