diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-04 19:52:58 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-04 19:52:58 +0000 |
commit | e4a6a03249967f66779565aa705ddad09647e2a9 (patch) | |
tree | b9866a4b8660c7b86b5a44728b5a786e13503176 /src/or/dirserv.c | |
parent | 88c37f2d24b66d467dd676d1ab4439217d8598a6 (diff) | |
download | tor-e4a6a03249967f66779565aa705ddad09647e2a9.tar.gz tor-e4a6a03249967f66779565aa705ddad09647e2a9.zip |
switch semantics of authdirinvalid/reject
svn:r5182
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 1dce850a34..d60560ce41 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -58,7 +58,7 @@ parse_authdir_policy(void) authdir_reject_policy = NULL; } config_parse_addr_policy(get_options()->AuthDirReject, - &authdir_reject_policy, ADDR_POLICY_ACCEPT); + &authdir_reject_policy, ADDR_POLICY_REJECT); /* ports aren't used. */ for (n=authdir_reject_policy; n; n = n->next) { n->prt_min = 1; @@ -70,7 +70,7 @@ parse_authdir_policy(void) authdir_invalid_policy = NULL; } config_parse_addr_policy(get_options()->AuthDirInvalid, - &authdir_invalid_policy, ADDR_POLICY_ACCEPT); + &authdir_invalid_policy, ADDR_POLICY_REJECT); /* ports aren't used. */ for (n=authdir_invalid_policy; n; n = n->next) { n->prt_min = 1; @@ -251,14 +251,14 @@ dirserv_router_get_status(const routerinfo_t *router, const char **msg) addr_policy_result_t inv = router_compare_addr_to_addr_policy( router->addr, router->or_port, authdir_invalid_policy); - if (rej == ADDR_POLICY_PROBABLY_ACCEPTED || rej == ADDR_POLICY_ACCEPTED) { + if (rej == ADDR_POLICY_PROBABLY_REJECTED || rej == ADDR_POLICY_REJECTED) { log_fn(LOG_INFO, "Rejecting '%s' because of address %s", router->nickname, router->address); if (msg) *msg = "Authdir is rejecting routers in this range."; return FP_REJECT; } - if (inv == ADDR_POLICY_PROBABLY_ACCEPTED || inv == ADDR_POLICY_ACCEPTED) { + if (inv == ADDR_POLICY_PROBABLY_REJECTED || inv == ADDR_POLICY_REJECTED) { log_fn(LOG_INFO, "Not marking '%s' valid because of address %s", router->nickname, router->address); return FP_INVALID; |