diff options
author | Alexander Færøy <ahf@torproject.org> | 2021-02-22 19:12:53 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2021-02-22 19:12:53 +0000 |
commit | 26c2e843f958c5451c836bbf9a4979aecac177c4 (patch) | |
tree | c133a57ca110a0f8b6746ee6da9084a57fbaee3d /src/feature | |
parent | 03c686563b54bbdf1337cb047b2b6002c5a1a549 (diff) | |
parent | 8a8045c788b6883751b5ecbfbd3de4da0dfd313a (diff) | |
download | tor-26c2e843f958c5451c836bbf9a4979aecac177c4.tar.gz tor-26c2e843f958c5451c836bbf9a4979aecac177c4.zip |
Merge remote-tracking branch 'tor-gitlab/mr/309' into 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 86b1533be1..46b4b20ffc 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; |