diff options
author | huyvq <huyvq.c633@gmail.com> | 2017-06-02 23:33:40 +0700 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-06-21 13:49:17 -0400 |
commit | ad97714f22ace023bda9f334687239127a71413a (patch) | |
tree | e9fb6e5b859110b6e4d1ffa207967ee01fcc8f66 /src/or/router.c | |
parent | 18cd1993ca852b25a18b266ae7d8dcecf573525a (diff) | |
download | tor-ad97714f22ace023bda9f334687239127a71413a.tar.gz tor-ad97714f22ace023bda9f334687239127a71413a.zip |
Remove obsolete authdir_mode_any_nonhidserv()
- Replace it with authdir_mode()
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/or/router.c b/src/or/router.c index e12f13865d..f2052f43b0 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1596,14 +1596,6 @@ authdir_mode_v3(const or_options_t *options) { return authdir_mode(options) && options->V3AuthoritativeDir != 0; } -/** Return true if we believe ourselves to be any kind of - * authoritative directory beyond just a hidserv authority. */ -int -authdir_mode_any_nonhidserv(const or_options_t *options) -{ - return options->BridgeAuthoritativeDir || - authdir_mode_any_main(options); -} /** Return true iff we are an authoritative directory server that is * authoritative about receiving and serving descriptors of type * <b>purpose</b> on its dirport. Use -1 for "any purpose". */ @@ -1611,7 +1603,7 @@ int authdir_mode_handles_descs(const or_options_t *options, int purpose) { if (purpose < 0) - return authdir_mode_any_nonhidserv(options); + return authdir_mode(options); else if (purpose == ROUTER_PURPOSE_GENERAL) return authdir_mode_v3(options); else if (purpose == ROUTER_PURPOSE_BRIDGE) @@ -1627,7 +1619,7 @@ authdir_mode_publishes_statuses(const or_options_t *options) { if (authdir_mode_bridge(options)) return 0; - return authdir_mode_any_nonhidserv(options); + return authdir_mode(options); } /** Return true iff we are an authoritative directory server that * tests reachability of the descriptors it learns about. |