Opened 2 weeks ago

#33681 assigned task

Refactor using_default_dir_authorities() local address checks

Reported by: teor Owned by: teor
Priority: Medium Milestone: Tor: 0.4.4.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords: prop312, ipv6
Cc: Actual Points:
Parent ID: #33236 Points: 0.5
Reviewer: Sponsor: Sponsor55-must


Currently, we check for IPv4 and IPv6 local addresses and using_default_dir_authorities() in two different places:

  • IPv4: resolve_my_address()
  • IPv6: router_get_advertised_ipv6_or_ap()

Once we've combined the code that checks IPv4 and IPv6 advertised ORPorts, we can do a single using_default_dir_authorities() check.

Child Tickets

Change History (0)

Note: See TracTickets for help on using tickets.