diff options
author | David Goulet <dgoulet@torproject.org> | 2020-07-24 09:11:16 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-24 12:18:07 -0400 |
commit | ad9806b5390f099a51ca8c8d34eff91e432da3f4 (patch) | |
tree | 7c3431dfb7edca4c4ffba46a366e19f6aa802a5f /src/feature/relay/router.h | |
parent | fda0fa02bfcf2faef4a973d24877dc7966f6d428 (diff) | |
download | tor-ad9806b5390f099a51ca8c8d34eff91e432da3f4.tar.gz tor-ad9806b5390f099a51ca8c8d34eff91e432da3f4.zip |
relay: Publish IPv4 descriptor on guessed IPv6 reachability failure
On an IPv6 reachability failure test, if the address was configured, don't
publish the descriptor and log warn. If the address was auto discovered, still
publish the descriptor.
Closes #33247.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay/router.h')
-rw-r--r-- | src/feature/relay/router.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/relay/router.h b/src/feature/relay/router.h index c4e9af039f..89b4a479a4 100644 --- a/src/feature/relay/router.h +++ b/src/feature/relay/router.h @@ -84,6 +84,8 @@ void router_new_consensus_params(const networkstatus_t *); void router_upload_dir_desc_to_dirservers(int force); void mark_my_descriptor_dirty_if_too_old(time_t now); void mark_my_descriptor_dirty(const char *reason); +void mark_my_descriptor_if_omit_ipv6_changes(const char *reason, + bool omit_ipv6); void check_descriptor_bandwidth_changed(time_t now); void check_descriptor_ipaddress_changed(time_t now); int router_has_bandwidth_to_be_dirserver(const or_options_t *options); |