diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-02 11:46:25 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-02 11:46:25 +0000 |
commit | dc34426517674ff86db7860eb11d4db65dea58d8 (patch) | |
tree | c5abe5a1d0f10453ef9a9060cf4248baf93d754b /src/transport/plugin_transport_http_server.c | |
parent | 99706d4043a7b4e58496b1b73cd070890b895374 (diff) | |
download | gnunet-dc34426517674ff86db7860eb11d4db65dea58d8.tar.gz gnunet-dc34426517674ff86db7860eb11d4db65dea58d8.zip |
fix network type for external hostnames in http_server
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 4 |
1 files changed, 3 insertions, 1 deletions
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, | |||
1109 | ats = plugin->env->get_address_type (plugin->env->cls, conn_info->client_addr, sizeof (struct sockaddr_in6)); | 1109 | ats = plugin->env->get_address_type (plugin->env->cls, conn_info->client_addr, sizeof (struct sockaddr_in6)); |
1110 | break; | 1110 | break; |
1111 | default: | 1111 | default: |
1112 | GNUNET_break (0); | 1112 | /* external host name */ |
1113 | ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); | ||
1114 | ats.type = htonl (GNUNET_ATS_NET_WAN); | ||
1113 | return NULL; | 1115 | return NULL; |
1114 | } | 1116 | } |
1115 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, | 1117 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, |