Author: grothoff
Date: 2008-02-24 16:00:56 -0700 (Sun, 24 Feb 2008)
New Revision: 6443

Modified:
   GNUnet/src/applications/hostlist/hostlist.c
Log:
try all for self

Modified: GNUnet/src/applications/hostlist/hostlist.c
===================================================================
--- GNUnet/src/applications/hostlist/hostlist.c 2008-02-24 22:07:32 UTC (rev 
6442)
+++ GNUnet/src/applications/hostlist/hostlist.c 2008-02-24 23:00:56 UTC (rev 
6443)
@@ -122,8 +122,9 @@
                                         MHD_GET_ARGUMENT_KIND, "p");
   if ((protos == NULL) || (1 != sscanf (protos, "%llu", &results.protocols)))
     results.protocols = -1;
-  host_processor (coreAPI->myIdentity,
-                  GNUNET_TRANSPORT_PROTOCOL_NUMBER_ANY, GNUNET_YES, &results);
+  for 
(i=GNUNET_TRANSPORT_PROTOCOL_NUMBER_MAX;i>GNUNET_TRANSPORT_PROTOCOL_NUMBER_NAT;i--)
+    host_processor (coreAPI->myIdentity,
+                   i, GNUNET_YES, &results);
   identity->forEachHost (GNUNET_get_time (), &host_processor, &results);
   if (results.size == 0)
     return MHD_NO;              /* no known hosts!? */



_______________________________________________
GNUnet-SVN mailing list
GNUnet-SVN@gnu.org
http://lists.gnu.org/mailman/listinfo/gnunet-svn

Reply via email to