mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Remove redundant descriptor checks for OR/Dir reachability
The ORPort and DirPort must be reachable, or we won't publish a descriptor.
This commit is contained in:
parent
b51316c0e7
commit
211e56ad87
1 changed files with 0 additions and 6 deletions
|
@ -1247,9 +1247,6 @@ decide_to_advertise_dirport(const or_options_t *options, uint16_t dir_port)
|
||||||
return dir_port;
|
return dir_port;
|
||||||
if (net_is_disabled())
|
if (net_is_disabled())
|
||||||
return 0;
|
return 0;
|
||||||
/* redundant - if DirPort is unreachable, we don't publish a descriptor */
|
|
||||||
if (!check_whether_dirport_reachable())
|
|
||||||
return 0;
|
|
||||||
if (!router_get_advertised_dir_port(options, dir_port))
|
if (!router_get_advertised_dir_port(options, dir_port))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -1280,9 +1277,6 @@ decide_to_advertise_begindir(const or_options_t *options,
|
||||||
return 1;
|
return 1;
|
||||||
if (net_is_disabled())
|
if (net_is_disabled())
|
||||||
return 0;
|
return 0;
|
||||||
/* redundant - if ORPort is unreachable, we don't publish a descriptor */
|
|
||||||
if (!check_whether_orport_reachable())
|
|
||||||
return 0;
|
|
||||||
if (!router_get_advertised_or_port(options))
|
if (!router_get_advertised_or_port(options))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue