fix network type for external hostnames in http_server
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 2 Jul 2013 11:46:25 +0000 (11:46 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 2 Jul 2013 11:46:25 +0000 (11:46 +0000)
src/transport/plugin_transport_http_server.c

index 8f4b5bbeb897999d747a65151485c9ed5bc22eba..b7967296fce50b82e7879c5094447b7284641f1a 100644 (file)
@@ -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,