The ORPort and DirPort must be reachable, or we won't publish a
descriptor.
return dir_port;
if (net_is_disabled())
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))
return 0;
return 1;
if (net_is_disabled())
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))
return 0;