diff options
author | Roger Dingledine <arma@torproject.org> | 2009-08-07 19:26:41 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-08-07 19:26:41 -0400 |
commit | 3e4379c2e73bf458cf60c63df44a8d0ec761568c (patch) | |
tree | 677787848283bef51a3d75df0cd4430111049b6d /src/or/test.c | |
parent | 8196130f245ea4ccd893ad9b146a63f3fa5e68c1 (diff) | |
download | tor-3e4379c2e73bf458cf60c63df44a8d0ec761568c.tar.gz tor-3e4379c2e73bf458cf60c63df44a8d0ec761568c.zip |
Disable .exit notation unless AllowDotExit is 1.
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/test.c b/src/or/test.c index 3103eed828..dffb0a5ade 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -4489,10 +4489,10 @@ test_rend_fns(void) char address3[] = "fooaddress.exit"; char address4[] = "www.torproject.org"; - test_assert(BAD_HOSTNAME == parse_extended_hostname(address1)); - test_assert(ONION_HOSTNAME == parse_extended_hostname(address2)); - test_assert(EXIT_HOSTNAME == parse_extended_hostname(address3)); - test_assert(NORMAL_HOSTNAME == parse_extended_hostname(address4)); + test_assert(BAD_HOSTNAME == parse_extended_hostname(address1, 1)); + test_assert(ONION_HOSTNAME == parse_extended_hostname(address2, 1)); + test_assert(EXIT_HOSTNAME == parse_extended_hostname(address3, 1)); + test_assert(NORMAL_HOSTNAME == parse_extended_hostname(address4, 1)); pk1 = pk_generate(0); pk2 = pk_generate(1); |