mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Merge branch 'maint-0.4.5'
This commit is contained in:
commit
a4df1e8ea4
4
changes/bug40287
Normal file
4
changes/bug40287
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes (directory authority):
|
||||
- Now that exit relays don't allow exit connections to directory authority
|
||||
DirPorts (network reentry), disable authorities' reachability self test
|
||||
on the DirPort. Fixes bug 40287; bugfix on 0.4.5.5-rc.
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user