diff options
author | David Goulet <dgoulet@torproject.org> | 2020-07-24 09:19:49 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-24 11:32:49 -0400 |
commit | fda0fa02bfcf2faef4a973d24877dc7966f6d428 (patch) | |
tree | 665985bed84cabacba184495f5dc3d771c51b150 /src/app/config/resolve_addr.h | |
parent | bf2b1e7a6f7d0410515468d0b5440d45c0745c5a (diff) | |
download | tor-fda0fa02bfcf2faef4a973d24877dc7966f6d428.tar.gz tor-fda0fa02bfcf2faef4a973d24877dc7966f6d428.zip |
relay: Add a cache that tracks which address was configured
Related to #33247
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/app/config/resolve_addr.h')
-rw-r--r-- | src/app/config/resolve_addr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/config/resolve_addr.h b/src/app/config/resolve_addr.h index f435f9f41f..96c86eeeea 100644 --- a/src/app/config/resolve_addr.h +++ b/src/app/config/resolve_addr.h @@ -49,6 +49,8 @@ void resolved_addr_set_last(const tor_addr_t *addr, void resolved_addr_get_suggested(int family, tor_addr_t *addr_out); void resolved_addr_set_suggested(const tor_addr_t *addr); +bool resolved_addr_is_configured(int family); + MOCK_DECL(bool, is_local_to_resolve_addr, (const tor_addr_t *addr)); #ifdef RESOLVE_ADDR_PRIVATE |