diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-10-27 01:03:41 -0700 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2009-10-27 01:03:41 -0700 |
commit | 56c2385157ee3fac81bb3f0c44fd933e0063ccde (patch) | |
tree | 105f78e6462876b17410897bf58b4147fdfdc308 /src/test/test.c | |
parent | 8c34e792630fa32a3f472d875e25e6f25078d7e0 (diff) | |
download | tor-56c2385157ee3fac81bb3f0c44fd933e0063ccde.tar.gz tor-56c2385157ee3fac81bb3f0c44fd933e0063ccde.zip |
Fix bug 1113.
Bridges do not use the default exit policy, but reject *:* by default.
Diffstat (limited to 'src/test/test.c')
-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 839d9469eb..d85f1f0f87 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -629,7 +629,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); + r = policies_parse_exit_policy(&line, &policy, 0, NULL, 1); test_eq(r, 0); summary = policy_summarize(policy); @@ -675,7 +675,7 @@ test_policies(void) compare_addr_to_addr_policy(0xc0a80102, 2, policy)); policy2 = NULL; - test_assert(0 == policies_parse_exit_policy(NULL, &policy2, 1, NULL)); + test_assert(0 == policies_parse_exit_policy(NULL, &policy2, 1, NULL, 1)); test_assert(policy2); test_assert(!exit_policy_is_general_exit(policy)); @@ -699,7 +699,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)); + test_assert(0 == policies_parse_exit_policy(&line, &policy, 0, NULL, 1)); test_assert(policy); //test_streq(policy->string, "accept *:80"); //test_streq(policy->next->string, "reject *:*"); |