diff options
author | David Goulet <dgoulet@torproject.org> | 2020-06-15 15:27:32 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-06-23 09:25:36 -0400 |
commit | 6da8c0b4fa9243158c860035c27d2d9bba17a832 (patch) | |
tree | be86d0d0de848c6ef3a209a3626f782fcdf12a84 /src/feature/relay/relay_find_addr.c | |
parent | 47f9edde699ad687884b6222b557c10dee2592c9 (diff) | |
download | tor-6da8c0b4fa9243158c860035c27d2d9bba17a832.tar.gz tor-6da8c0b4fa9243158c860035c27d2d9bba17a832.zip |
addr: Rename resolve_my_address to be v4 specific
Part of #33233
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay/relay_find_addr.c')
-rw-r--r-- | src/feature/relay/relay_find_addr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/relay/relay_find_addr.c b/src/feature/relay/relay_find_addr.c index 86cd799d42..561ef1507a 100644 --- a/src/feature/relay/relay_find_addr.c +++ b/src/feature/relay/relay_find_addr.c @@ -66,7 +66,7 @@ router_new_address_suggestion(const char *suggestion, /* XXXX ipv6 */ cur = get_last_resolved_addr(); if (cur || - resolve_my_address(LOG_INFO, options, &cur, NULL, NULL) >= 0) { + resolve_my_address_v4(LOG_INFO, options, &cur, NULL, NULL) >= 0) { /* We're all set -- we already know our address. Great. */ tor_addr_from_ipv4h(&last_guessed_ip, cur); /* store it in case we need it later */ @@ -118,7 +118,7 @@ router_pick_published_address, (const or_options_t *options, uint32_t *addr, /* Second, consider doing a resolve attempt right here. */ if (!cache_only) { - if (resolve_my_address(LOG_INFO, options, addr, NULL, NULL) >= 0) { + if (resolve_my_address_v4(LOG_INFO, options, addr, NULL, NULL) >= 0) { log_info(LD_CONFIG,"Success: chose address '%s'.", fmt_addr32(*addr)); return 0; } |