summaryrefslogtreecommitdiff
path: root/src/feature/relay/router.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-04-29 20:10:14 +1000
committerteor <teor@torproject.org>2020-04-29 22:43:09 +1000
commitcab05a84cd1504bc4929207a1f33b266744e5dca (patch)
tree7f9e34c9c06ab729302ee1716a87a971b6c68aff /src/feature/relay/router.c
parentc3e058dfac1cbc7cb0dee5cdb1bdc61c1dc0f4fa (diff)
downloadtor-cab05a84cd1504bc4929207a1f33b266744e5dca.tar.gz
tor-cab05a84cd1504bc4929207a1f33b266744e5dca.zip
relay: Add IP version tests for circuit extends
Add IPv4-only and IPv6-only tests for circuit_open_connection_for_extend(). Part of 33817.
Diffstat (limited to 'src/feature/relay/router.c')
-rw-r--r--src/feature/relay/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c
index 89e232ccc0..b0a56012db 100644
--- a/src/feature/relay/router.c
+++ b/src/feature/relay/router.c
@@ -1491,8 +1491,8 @@ router_get_advertised_ipv6_or_ap(const or_options_t *options,
}
/** Returns true if this router has an advertised IPv6 ORPort. */
-bool
-router_has_advertised_ipv6_orport(const or_options_t *options)
+MOCK_IMPL(bool,
+router_has_advertised_ipv6_orport,(const or_options_t *options))
{
tor_addr_port_t ipv6_ap;
router_get_advertised_ipv6_or_ap(options, &ipv6_ap);