aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay/circuitbuild_relay.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-04-30 06:47:46 +1000
committerteor <teor@torproject.org>2020-04-30 06:54:42 +1000
commit15a4180a7e041531d6923a41684e9e6ffc833760 (patch)
tree3868606983450a146dd001f5dbc5b8d5b0f9d80e /src/feature/relay/circuitbuild_relay.c
parent066d2deb3d322e960600d80739739199d8c4cfa6 (diff)
downloadtor-15a4180a7e041531d6923a41684e9e6ffc833760.tar.gz
tor-15a4180a7e041531d6923a41684e9e6ffc833760.zip
relay: Refactor can extend over IPv6 checks
Split "can extend over IPv6" and "has advertised IPv6 ORPort" into separate functions. They currently have the same result, but this may change in 33818 with ExtendAllowIPv6Addresses. Part of 33817.
Diffstat (limited to 'src/feature/relay/circuitbuild_relay.c')
-rw-r--r--src/feature/relay/circuitbuild_relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/relay/circuitbuild_relay.c b/src/feature/relay/circuitbuild_relay.c
index 75b2767b82..b89866b477 100644
--- a/src/feature/relay/circuitbuild_relay.c
+++ b/src/feature/relay/circuitbuild_relay.c
@@ -251,7 +251,7 @@ STATIC const tor_addr_port_t *
circuit_choose_ip_ap_for_extend(const tor_addr_port_t *ipv4_ap,
const tor_addr_port_t *ipv6_ap)
{
- const bool ipv6_supported = router_has_advertised_ipv6_orport(get_options());
+ const bool ipv6_supported = router_can_extend_over_ipv6(get_options());
/* If IPv6 is not supported, we can't use the IPv6 address. */
if (!ipv6_supported) {