aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_group.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-04-27 15:32:55 +0000
committerNathan S. Evans <evans@in.tum.de>2010-04-27 15:32:55 +0000
commit7346e9edb1c5d68312a76ae10a38d360beaa39b5 (patch)
treec545520152b6507a471a371bdcdaf6a15ccefcd1 /src/testing/testing_group.c
parentc457e0af785fbb91c06869ac789ae39e5cfda7c3 (diff)
downloadgnunet-7346e9edb1c5d68312a76ae10a38d360beaa39b5.tar.gz
gnunet-7346e9edb1c5d68312a76ae10a38d360beaa39b5.zip
testing bug fixes (hopefully)
Diffstat (limited to 'src/testing/testing_group.c')
-rw-r--r--src/testing/testing_group.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c
index 49ab8a349..136b167fb 100644
--- a/src/testing/testing_group.c
+++ b/src/testing/testing_group.c
@@ -84,7 +84,6 @@ struct PeerData
84 84
85 /* 85 /*
86 * Linked list of peer connections (simply indexes of PeerGroup) 86 * Linked list of peer connections (simply indexes of PeerGroup)
87 * FIXME: Question, store pointer or integer? Pointer for now...
88 */ 87 */
89 struct PeerConnection *connected_peers; 88 struct PeerConnection *connected_peers;
90}; 89};
@@ -255,7 +254,7 @@ make_config (const struct GNUNET_CONFIGURATION_Handle *cfg, uint16_t * port, con
255 254
256 if (GNUNET_CONFIGURATION_get_value_string(cfg, "testing", "control_host", &control_host) == GNUNET_OK) 255 if (GNUNET_CONFIGURATION_get_value_string(cfg, "testing", "control_host", &control_host) == GNUNET_OK)
257 { 256 {
258 GNUNET_asprintf(&allowed_hosts, "%s 127.0.0.1;", control_host); 257 GNUNET_asprintf(&allowed_hosts, "%s; 127.0.0.1;", control_host);
259 GNUNET_CONFIGURATION_set_value_string(uc.ret, "core", "ACCEPT_FROM", allowed_hosts); 258 GNUNET_CONFIGURATION_set_value_string(uc.ret, "core", "ACCEPT_FROM", allowed_hosts);
260 GNUNET_free_non_null(control_host); 259 GNUNET_free_non_null(control_host);
261 GNUNET_free(allowed_hosts); 260 GNUNET_free(allowed_hosts);
@@ -957,6 +956,10 @@ create_and_copy_friend_files (struct GNUNET_TESTING_PeerGroup *pg)
957 } 956 }
958 } 957 }
959 958
959#if VERBOSE_TESTING
960 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
961 _("Finished copying all friend files!\n"));
962#endif
960 GNUNET_free(pidarr); 963 GNUNET_free(pidarr);
961 return ret; 964 return ret;
962} 965}