From dc34426517674ff86db7860eb11d4db65dea58d8 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 2 Jul 2013 11:46:25 +0000 Subject: [PATCH] fix network type for external hostnames in http_server --- src/transport/plugin_transport_http_server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.25.1