[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22462 - gnunet/src/testing
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22462 - gnunet/src/testing |
Date: |
Tue, 3 Jul 2012 16:40:35 +0200 |
Author: harsha
Date: 2012-07-03 16:40:35 +0200 (Tue, 03 Jul 2012)
New Revision: 22462
Modified:
gnunet/src/testing/testing.c
Log:
-ADVERTISED_PORT updated with value of PORT if present and not present in
TESTING_IGNORE_KEYS
Modified: gnunet/src/testing/testing.c
===================================================================
--- gnunet/src/testing/testing.c 2012-07-03 13:40:54 UTC (rev 22461)
+++ gnunet/src/testing/testing.c 2012-07-03 14:40:35 UTC (rev 22462)
@@ -654,6 +654,23 @@
{
for (key = 0; key < ikeys_cnt; key++)
{
+ if (NULL != strstr (ikeys[key], "ADVERTISED_PORT"))
+ break;
+ }
+ if ((key == ikeys_cnt) &&
+ (GNUNET_YES == GNUNET_CONFIGURATION_have_value (uc->cfg, section,
+ "ADVERTISED_PORT")))
+ {
+ if (GNUNET_OK ==
+ GNUNET_CONFIGURATION_get_value_string (uc->cfg, section, "PORT",
&ptr))
+ {
+ GNUNET_CONFIGURATION_set_value_string (uc->cfg, section,
+ "ADVERTISED_PORT", ptr);
+ GNUNET_free (ptr);
+ }
+ }
+ for (key = 0; key < ikeys_cnt; key++)
+ {
if (NULL != strstr (ikeys[key], "ACCEPT_FROM"))
{
GNUNET_free (ikeys);
@@ -664,10 +681,6 @@
GNUNET_free (ikeys);
}
GNUNET_free_non_null (val);
-
- /* if (NULL != strstr (section, "transport-")) */
- /* return; */
-
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (uc->cfg, section, "ACCEPT_FROM",
&orig_allowed_hosts))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22462 - gnunet/src/testing,
gnunet <=