gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit a526120c95e139cd21bdfb2cf4e0e3b070e8cf2c
parent 61b185460ac51e23f01c24a1ad0fa21f4e4f831d
Author: Matthias Wachs <wachs@net.in.tum.de>
Date:   Tue,  2 Jul 2013 11:39:22 +0000

fixed: invalid network scope for external hostname


Diffstat:
Msrc/transport/plugin_transport_http_client.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c @@ -1499,9 +1499,11 @@ http_client_plugin_get_session (void *cls, //fprintf (stderr, "Address %s is in %s\n", GNUNET_a2s (sa,salen), GNUNET_ATS_print_network_type(ntohl(ats.value))); GNUNET_free (sa); } + else if (GNUNET_NO == res) { - ats.value = htonl (GNUNET_ATS_COST_WAN); + /* Cannot convert to sockaddr -> is external hostname */ + ats.value = htonl (GNUNET_ATS_NET_WAN); } if (GNUNET_ATS_NET_UNSPECIFIED == ntohl(ats.value))