diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-25 06:24:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-25 06:24:01 +0000 |
commit | 8a3016481ba6aeb36de3950a56e641dda53ca544 (patch) | |
tree | 0c5468ec6e5d2165ad5931940e0b8439d09398de /src/transport/plugin_transport_http.c | |
parent | b6d4eeb39fd0cd41df164bd0959f58b08aa45e83 (diff) | |
download | gnunet-8a3016481ba6aeb36de3950a56e641dda53ca544.tar.gz gnunet-8a3016481ba6aeb36de3950a56e641dda53ca544.zip |
the big NAT change
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r-- | src/transport/plugin_transport_http.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index ba58f9ea7..09b3b219f 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c | |||
@@ -821,19 +821,19 @@ process_interfaces (void *cls, | |||
821 | t4->ipv4_addr = ((struct sockaddr_in *) addr)->sin_addr.s_addr; | 821 | t4->ipv4_addr = ((struct sockaddr_in *) addr)->sin_addr.s_addr; |
822 | t4->u_port = htons (plugin->port_inbound); | 822 | t4->u_port = htons (plugin->port_inbound); |
823 | if (plugin->bind4_address != NULL) { | 823 | if (plugin->bind4_address != NULL) { |
824 | if (0 == memcmp(&plugin->bind4_address->sin_addr, &bnd_cmp, sizeof (struct in_addr))) | 824 | if (0 == memcmp(&plugin->bind4_address->sin_addr, &bnd_cmp, sizeof (struct in_addr))) |
825 | { | 825 | { |
826 | GNUNET_CONTAINER_DLL_insert(plugin->ipv4_addr_head, | 826 | GNUNET_CONTAINER_DLL_insert(plugin->ipv4_addr_head, |
827 | plugin->ipv4_addr_tail,t4); | 827 | plugin->ipv4_addr_tail,t4); |
828 | plugin->env->notify_address(plugin->env->cls, | 828 | plugin->env->notify_address(plugin->env->cls, |
829 | PROTOCOL_PREFIX, | 829 | PROTOCOL_PREFIX, |
830 | t4, sizeof (struct IPv4HttpAddress), | 830 | t4, sizeof (struct IPv4HttpAddress), |
831 | GNUNET_TIME_UNIT_FOREVER_REL); | 831 | GNUNET_TIME_UNIT_FOREVER_REL); |
832 | return GNUNET_OK; | 832 | return GNUNET_OK; |
833 | } | ||
834 | GNUNET_free (t4); | ||
835 | return GNUNET_OK; | ||
836 | } | 833 | } |
834 | GNUNET_free (t4); | ||
835 | return GNUNET_OK; | ||
836 | } | ||
837 | else | 837 | else |
838 | { | 838 | { |
839 | GNUNET_CONTAINER_DLL_insert (plugin->ipv4_addr_head, | 839 | GNUNET_CONTAINER_DLL_insert (plugin->ipv4_addr_head, |