diff options
author | wachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96> | 2013-01-18 13:49:00 +0000 |
---|---|---|
committer | wachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96> | 2013-01-18 13:49:00 +0000 |
commit | cab42b3082680dc3665f914a3b48ad9de2a4c59a (patch) | |
tree | b86e70517d9c9bb0c397594796588538748b08c4 /src/transport/plugin_transport_http_client.c | |
parent | 3d1a84be7c3e2d46a9390b9e625076c8cb3896b2 (diff) |
changes
git-svn-id: https://gnunet.org/svn/gnunet@25830 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index d19d0c9997..e7bf704625 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c @@ -1450,11 +1450,12 @@ http_client_plugin_get_session (void *cls, { salen = sizeof (struct sockaddr_in); } - else if (AF_INET == sa->sa_family) + else if (AF_INET6 == sa->sa_family) { salen = sizeof (struct sockaddr_in6); } ats = plugin->env->get_address_type (plugin->env->cls, sa, salen); + //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) |