diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-10-25 00:20:41 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-14 23:16:22 -0500 |
commit | 9016d9e8294a35295851d12b62de4ac9a5549709 (patch) | |
tree | 028df65c0b01db32661f0389726d033130bfade9 /src/test | |
parent | c3faa0ebd55f7de80db1a3aa5e64a79c72708722 (diff) | |
download | tor-9016d9e8294a35295851d12b62de4ac9a5549709.tar tor-9016d9e8294a35295851d12b62de4ac9a5549709.tar.gz |
Add an IPv6Exit configuration option
Don't advertise an IPv6 exit policy, or accept IPv6 exit requests,
if IPv6Exit is not true.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test.c b/src/test/test.c index 6652e7709..d70f25510 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -1044,7 +1044,7 @@ test_policy_summary_helper(const char *policy_str, line.value = (char *)policy_str; line.next = NULL; - r = policies_parse_exit_policy(&line, &policy, 0, NULL, 1); + r = policies_parse_exit_policy(&line, &policy, 1, 0, NULL, 1); test_eq(r, 0); summary = policy_summarize(policy, AF_INET); @@ -1101,7 +1101,7 @@ test_policies(void) test_assert(ADDR_POLICY_REJECTED == compare_tor_addr_to_addr_policy(&tar, 2, policy)); - test_assert(0 == policies_parse_exit_policy(NULL, &policy2, 1, NULL, 1)); + test_assert(0 == policies_parse_exit_policy(NULL, &policy2, 1, 1, NULL, 1)); test_assert(policy2); policy3 = smartlist_new(); @@ -1188,7 +1188,7 @@ test_policies(void) line.key = (char*)"foo"; line.value = (char*)"accept *:80,reject private:*,reject *:*"; line.next = NULL; - test_assert(0 == policies_parse_exit_policy(&line, &policy, 0, NULL, 1)); + test_assert(0 == policies_parse_exit_policy(&line, &policy, 1, 0, NULL, 1)); test_assert(policy); //test_streq(policy->string, "accept *:80"); //test_streq(policy->next->string, "reject *:*"); |