diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-04-19 14:58:06 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-04-19 14:58:06 +0000 |
commit | 1079f746c943b2efffa28970fe03f679334c3bb3 (patch) | |
tree | 84772e454aafeb26dc13cc6ed6455fb7c40bc10d /src/nat | |
parent | 2660d770616a348aabb9480dcbafa4841ae84aa0 (diff) | |
download | gnunet-1079f746c943b2efffa28970fe03f679334c3bb3.tar.gz gnunet-1079f746c943b2efffa28970fe03f679334c3bb3.zip |
added privilege testing parameters for nat-server and added parameters
to currently windows-only tests (less work in the future, even if this
is ATM unused)
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/nat.c | 2 | ||||
-rw-r--r-- | src/nat/nat_auto.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nat/nat.c b/src/nat/nat.c index 84ca2efa2..515fa1eb8 100644 --- a/src/nat/nat.c +++ b/src/nat/nat.c | |||
@@ -1171,7 +1171,7 @@ GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg, int is_tcp, | |||
1171 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-nat-server"); | 1171 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-nat-server"); |
1172 | if ((h->behind_nat == GNUNET_YES) && (GNUNET_YES == h->enable_nat_server) && | 1172 | if ((h->behind_nat == GNUNET_YES) && (GNUNET_YES == h->enable_nat_server) && |
1173 | (GNUNET_YES != | 1173 | (GNUNET_YES != |
1174 | GNUNET_OS_check_helper_binary (binary, GNUNET_YES, NULL))) // FIXME: CF: add test-parameters | 1174 | GNUNET_OS_check_helper_binary (binary, GNUNET_YES, "-d 127.0.0.1" ))) // use localhost as source for that one udp-port, ok for testing |
1175 | { | 1175 | { |
1176 | h->enable_nat_server = GNUNET_NO; | 1176 | h->enable_nat_server = GNUNET_NO; |
1177 | LOG (GNUNET_ERROR_TYPE_WARNING, | 1177 | LOG (GNUNET_ERROR_TYPE_WARNING, |
diff --git a/src/nat/nat_auto.c b/src/nat/nat_auto.c index 0c5bec118..68689243e 100644 --- a/src/nat/nat_auto.c +++ b/src/nat/nat_auto.c | |||
@@ -426,7 +426,7 @@ test_icmp_server (struct GNUNET_NAT_AutoHandle *ah) | |||
426 | (GNUNET_YES == | 426 | (GNUNET_YES == |
427 | GNUNET_CONFIGURATION_get_value_yesno (ah->cfg, "nat", "BEHIND_NAT")) && | 427 | GNUNET_CONFIGURATION_get_value_yesno (ah->cfg, "nat", "BEHIND_NAT")) && |
428 | (GNUNET_YES == | 428 | (GNUNET_YES == |
429 | GNUNET_OS_check_helper_binary (binary, GNUNET_YES, NULL))); // FIXME: CF: add test-parameters | 429 | GNUNET_OS_check_helper_binary (binary, GNUNET_YES, "-d 127.0.0.1" ))); // use localhost as source for that one udp-port, ok for testing |
430 | GNUNET_free_non_null (tmp); | 430 | GNUNET_free_non_null (tmp); |
431 | GNUNET_free (binary); | 431 | GNUNET_free (binary); |
432 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 432 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |