aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-10-07 14:16:58 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-10-07 14:16:58 +0000
commit667ecd3a8d88b6785d3488e61b1e3f80b36d5672 (patch)
treedc150ae476b0544261fe54637ac968b949f41d61 /src/transport/plugin_transport_http.c
parent5bb85241624abcab1e6d78d334ec25d282621d49 (diff)
downloadgnunet-667ecd3a8d88b6785d3488e61b1e3f80b36d5672.tar.gz
gnunet-667ecd3a8d88b6785d3488e61b1e3f80b36d5672.zip
removed not needed check
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r--src/transport/plugin_transport_http.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index 48ae22bc0..fbbd1ad76 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -2522,15 +2522,10 @@ http_plugin_address_suggested (void *cls,
2522 if (addrlen == sizeof (struct IPv4HttpAddress)) 2522 if (addrlen == sizeof (struct IPv4HttpAddress))
2523 { 2523 {
2524 v4 = (struct IPv4HttpAddress *) addr; 2524 v4 = (struct IPv4HttpAddress *) addr;
2525 /* Not skipping loopback
2526 if (INADDR_LOOPBACK == ntohl(v4->ipv4_addr))
2527 {
2528 return GNUNET_SYSERR;
2529 } */
2530 2525
2531 if (plugin->bind4_address!=NULL) 2526 if (plugin->bind4_address!=NULL)
2532 { 2527 {
2533 if (0 == memcmp (&plugin->bind4_address->sin_addr, &v4->ipv4_addr, sizeof(uint32_t)) && (ntohs (v4->u_port) == plugin->port_inbound)) 2528 if (0 == memcmp (&plugin->bind4_address->sin_addr, &v4->ipv4_addr, sizeof(uint32_t)))
2534 return GNUNET_OK; 2529 return GNUNET_OK;
2535 else 2530 else
2536 return GNUNET_SYSERR; 2531 return GNUNET_SYSERR;
@@ -2541,7 +2536,7 @@ http_plugin_address_suggested (void *cls,
2541 break; 2536 break;
2542 tv4 = tv4->next; 2537 tv4 = tv4->next;
2543 } 2538 }
2544 if ((tv4 !=NULL) && (ntohs (v4->u_port) == plugin->port_inbound)) 2539 if (tv4 != NULL)
2545 return GNUNET_OK; 2540 return GNUNET_OK;
2546 else 2541 else
2547 return GNUNET_SYSERR; 2542 return GNUNET_SYSERR;
@@ -2564,7 +2559,7 @@ http_plugin_address_suggested (void *cls,
2564 break; 2559 break;
2565 tv6 = tv6->next; 2560 tv6 = tv6->next;
2566 } 2561 }
2567 if ((tv6 !=NULL) && (ntohs (v6->u6_port) == plugin->port_inbound)) 2562 if (tv6 !=NULL)
2568 return GNUNET_OK; 2563 return GNUNET_OK;
2569 else 2564 else
2570 return GNUNET_SYSERR; 2565 return GNUNET_SYSERR;