From 94da310728280f2869f106931ce693a442639495 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Tue, 17 Aug 2010 09:41:43 +0000 Subject: [PATCH] add bindto for udp transport as well, in case it's used --- src/testing/testing_group.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index 80840a83b..734383b20 100644 --- a/src/testing/testing_group.c +++ b/src/testing/testing_group.c @@ -772,12 +772,16 @@ make_config (const struct GNUNET_CONFIGURATION_Handle *cfg, 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; -- 2.25.1