From: Nathan S. Evans Date: Tue, 17 Aug 2010 09:41:43 +0000 (+0000) Subject: add bindto for udp transport as well, in case it's used X-Git-Tag: initial-import-from-subversion-38251~20671 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=94da310728280f2869f106931ce693a442639495;p=oweals%2Fgnunet.git add bindto for udp transport as well, in case it's used --- 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;