mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Do not check whether DirPort is reachable when we are suppressing it because of hibernation. (Backport candidate)
svn:r5235
This commit is contained in:
parent
08e4f132a8
commit
bf9ff1c1e7
@ -402,8 +402,10 @@ int
|
|||||||
check_whether_dirport_reachable(void)
|
check_whether_dirport_reachable(void)
|
||||||
{
|
{
|
||||||
or_options_t *options = get_options();
|
or_options_t *options = get_options();
|
||||||
|
routerinfo_t *ri = router_get_my_routerinfo();
|
||||||
return !options->DirPort ||
|
return !options->DirPort ||
|
||||||
options->AssumeReachable ||
|
options->AssumeReachable ||
|
||||||
|
(ri && !ri->dir_port) ||
|
||||||
can_reach_dir_port;
|
can_reach_dir_port;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user