aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-07-02 11:39:22 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-07-02 11:39:22 +0000
commita526120c95e139cd21bdfb2cf4e0e3b070e8cf2c (patch)
treebf45d99e2a263d84ac5efff5d0a4d89a49296669 /src/transport/plugin_transport_http_client.c
parent61b185460ac51e23f01c24a1ad0fa21f4e4f831d (diff)
downloadgnunet-a526120c95e139cd21bdfb2cf4e0e3b070e8cf2c.tar.gz
gnunet-a526120c95e139cd21bdfb2cf4e0e3b070e8cf2c.zip
fixed: invalid network scope for external hostname
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index 9fece2c7e..e06c41b3b 100644
--- 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,
1499 //fprintf (stderr, "Address %s is in %s\n", GNUNET_a2s (sa,salen), GNUNET_ATS_print_network_type(ntohl(ats.value))); 1499 //fprintf (stderr, "Address %s is in %s\n", GNUNET_a2s (sa,salen), GNUNET_ATS_print_network_type(ntohl(ats.value)));
1500 GNUNET_free (sa); 1500 GNUNET_free (sa);
1501 } 1501 }
1502
1502 else if (GNUNET_NO == res) 1503 else if (GNUNET_NO == res)
1503 { 1504 {
1504 ats.value = htonl (GNUNET_ATS_COST_WAN); 1505 /* Cannot convert to sockaddr -> is external hostname */
1506 ats.value = htonl (GNUNET_ATS_NET_WAN);
1505 } 1507 }
1506 1508
1507 if (GNUNET_ATS_NET_UNSPECIFIED == ntohl(ats.value)) 1509 if (GNUNET_ATS_NET_UNSPECIFIED == ntohl(ats.value))