diff options
author | David Goulet <dgoulet@torproject.org> | 2020-07-17 10:56:22 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-20 14:54:13 -0400 |
commit | 230293c169f73923b290598a1df4872acf1dee68 (patch) | |
tree | a6852cb99bfae5fcf4071bb8ded5ad1bc6d3367a /src/feature/control | |
parent | 433a1949e87190f1732ea426ed359c93f28cb578 (diff) | |
download | tor-230293c169f73923b290598a1df4872acf1dee68.tar.gz tor-230293c169f73923b290598a1df4872acf1dee68.zip |
control: With GETINFO, don't trigger an address resolve
Tell the relay find address interface to only use the cache so we don't
trigger an address resolve everytime the "GETINFO address" is called.
Related #40025
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/control')
-rw-r--r-- | src/feature/control/control_getinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/control/control_getinfo.c b/src/feature/control/control_getinfo.c index c489dfa865..4ac4f48a86 100644 --- a/src/feature/control/control_getinfo.c +++ b/src/feature/control/control_getinfo.c @@ -133,7 +133,7 @@ getinfo_helper_misc(control_connection_t *conn, const char *question, *answer = tor_strdup("VERBOSE_NAMES EXTENDED_EVENTS"); } else if (!strcmp(question, "address")) { tor_addr_t addr; - if (!relay_find_addr_to_publish(get_options(), AF_INET, false, &addr)) { + if (!relay_find_addr_to_publish(get_options(), AF_INET, true, &addr)) { *errmsg = "Address unknown"; return -1; } |