diff options
author | Alexander Færøy <ahf@torproject.org> | 2021-02-22 19:13:12 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2021-02-22 19:13:12 +0000 |
commit | a4df1e8ea47842a76e4fc3ebc750e68b728f222e (patch) | |
tree | 75e14f4a838b1efa372de29eddb5f8bcac7cf5ca /src/feature | |
parent | c0589d06be698ea864e2c58e40ffda0f228440d4 (diff) | |
parent | 26c2e843f958c5451c836bbf9a4979aecac177c4 (diff) | |
download | tor-a4df1e8ea47842a76e4fc3ebc750e68b728f222e.tar.gz tor-a4df1e8ea47842a76e4fc3ebc750e68b728f222e.zip |
Merge branch 'maint-0.4.5'
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/relay/selftest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/feature/relay/selftest.c b/src/feature/relay/selftest.c index 1b438b0330..062b2780e7 100644 --- a/src/feature/relay/selftest.c +++ b/src/feature/relay/selftest.c @@ -31,6 +31,8 @@ #include "feature/control/control_events.h" +#include "feature/dirauth/authmode.h" + #include "feature/dirclient/dirclient.h" #include "feature/dircommon/directory.h" @@ -142,12 +144,14 @@ router_orport_seems_reachable(const or_options_t *options, * - we've seen a successful reachability check, or * - there is no DirPort set, or * - AssumeReachable is set, or + * - We're a dir auth (see ticket #40287), or * - the network is disabled. */ int router_dirport_seems_reachable(const or_options_t *options) { int reach_checks_disabled = router_reachability_checks_disabled(options) || + authdir_mode(options) || !options->DirPort_set; return reach_checks_disabled || can_reach_dir_port; |