projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99706d4
)
fix network type for external hostnames in http_server
author
Matthias Wachs
<wachs@net.in.tum.de>
Tue, 2 Jul 2013 11:46:25 +0000
(11:46 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Tue, 2 Jul 2013 11:46:25 +0000
(11:46 +0000)
src/transport/plugin_transport_http_server.c
patch
|
blob
|
history
diff --git
a/src/transport/plugin_transport_http_server.c
b/src/transport/plugin_transport_http_server.c
index 8f4b5bbeb897999d747a65151485c9ed5bc22eba..b7967296fce50b82e7879c5094447b7284641f1a 100644
(file)
--- 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,