diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-08-17 09:41:43 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-08-17 09:41:43 +0000 |
commit | 94da310728280f2869f106931ce693a442639495 (patch) | |
tree | 86ae0f9c2be0ea39bdb180fd4b54c91a000accde /src/testing | |
parent | 3320e39dc2f8d5a7640919699a7ad090157c13b8 (diff) | |
download | gnunet-94da310728280f2869f106931ce693a442639495.tar.gz gnunet-94da310728280f2869f106931ce693a442639495.zip |
add bindto for udp transport as well, in case it's used
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing_group.c | 6 |
1 files changed, 5 insertions, 1 deletions
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, | |||
772 | if (hostname != NULL) | 772 | if (hostname != NULL) |
773 | { | 773 | { |
774 | GNUNET_asprintf(&allowed_hosts, "%s; 127.0.0.1;", hostname); | 774 | GNUNET_asprintf(&allowed_hosts, "%s; 127.0.0.1;", hostname); |
775 | GNUNET_CONFIGURATION_set_value_string(uc.ret, "transport-udp", "BINDTO", hostname); | ||
775 | GNUNET_CONFIGURATION_set_value_string(uc.ret, "transport-tcp", "BINDTO", hostname); | 776 | GNUNET_CONFIGURATION_set_value_string(uc.ret, "transport-tcp", "BINDTO", hostname); |
776 | GNUNET_CONFIGURATION_set_value_string(uc.ret, "arm", "ACCEPT_FROM", allowed_hosts); | 777 | GNUNET_CONFIGURATION_set_value_string(uc.ret, "arm", "ACCEPT_FROM", allowed_hosts); |
777 | GNUNET_free(allowed_hosts); | 778 | GNUNET_free(allowed_hosts); |
778 | } | 779 | } |
779 | else | 780 | else |
780 | GNUNET_CONFIGURATION_set_value_string(uc.ret, "transport-tcp", "BINDTO", "127.0.0.1"); | 781 | { |
782 | GNUNET_CONFIGURATION_set_value_string(uc.ret, "transport-tcp", "BINDTO", "127.0.0.1"); | ||
783 | GNUNET_CONFIGURATION_set_value_string(uc.ret, "transport-udp", "BINDTO", "127.0.0.1"); | ||
784 | } | ||
781 | 785 | ||
782 | *port = (uint16_t) uc.nport; | 786 | *port = (uint16_t) uc.nport; |
783 | *upnum = uc.upnum; | 787 | *upnum = uc.upnum; |