gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12584 - gnunet/src/testing


From: gnunet
Subject: [GNUnet-SVN] r12584 - gnunet/src/testing
Date: Tue, 17 Aug 2010 11:41:43 +0200

Author: nevans
Date: 2010-08-17 11:41:43 +0200 (Tue, 17 Aug 2010)
New Revision: 12584

Modified:
   gnunet/src/testing/testing_group.c
Log:
add bindto for udp transport as well, in case it's used

Modified: gnunet/src/testing/testing_group.c
===================================================================
--- gnunet/src/testing/testing_group.c  2010-08-17 09:41:13 UTC (rev 12583)
+++ gnunet/src/testing/testing_group.c  2010-08-17 09:41:43 UTC (rev 12584)
@@ -772,12 +772,16 @@
   if (hostname != NULL)
     {
       GNUNET_asprintf(&allowed_hosts, "%s; 127.0.0.1;", hostname);
+      GNUNET_CONFIGURATION_set_value_string(uc.ret, "transport-udp", "BINDTO", 
hostname);
       GNUNET_CONFIGURATION_set_value_string(uc.ret, "transport-tcp", "BINDTO", 
hostname);
       GNUNET_CONFIGURATION_set_value_string(uc.ret, "arm", "ACCEPT_FROM", 
allowed_hosts);
       GNUNET_free(allowed_hosts);
     }
   else
-    GNUNET_CONFIGURATION_set_value_string(uc.ret, "transport-tcp", "BINDTO", 
"127.0.0.1");
+    {
+      GNUNET_CONFIGURATION_set_value_string(uc.ret, "transport-tcp", "BINDTO", 
"127.0.0.1");
+      GNUNET_CONFIGURATION_set_value_string(uc.ret, "transport-udp", "BINDTO", 
"127.0.0.1");
+    }
 
   *port = (uint16_t) uc.nport;
   *upnum = uc.upnum;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]