diff options
author | teor <teor2345@gmail.com> | 2017-12-02 23:01:07 +1100 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2017-12-11 00:34:19 +1100 |
commit | 28d4355a6ebe69c84d0ae31d7a0763f0a17f0151 (patch) | |
tree | 8593797ea4d3432d783cd7fca47c04efb9762d60 /src/or/networkstatus.h | |
parent | 241b676638285e63bd6e4ca5225444a4b16207be (diff) | |
download | tor-28d4355a6ebe69c84d0ae31d7a0763f0a17f0151.tar.gz tor-28d4355a6ebe69c84d0ae31d7a0763f0a17f0151.zip |
Add networkstatus_consensus_has_ipv6() and unit tests
networkstatus_consensus_has_ipv6() tells us whether the consensus method of
our current consensus supports IPv6 ORPorts in the consensus.
Part of #23827.
Diffstat (limited to 'src/or/networkstatus.h')
-rw-r--r-- | src/or/networkstatus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/networkstatus.h b/src/or/networkstatus.h index 791e32adc4..1851a55e82 100644 --- a/src/or/networkstatus.h +++ b/src/or/networkstatus.h @@ -93,6 +93,7 @@ int networkstatus_consensus_can_use_multiple_directories( MOCK_DECL(int, networkstatus_consensus_can_use_extra_fallbacks,( const or_options_t *options)); int networkstatus_consensus_is_already_downloading(const char *resource); +int networkstatus_consensus_has_ipv6(const or_options_t* options); #define NSSET_FROM_CACHE 1 #define NSSET_WAS_WAITING_FOR_CERTS 2 |