Add networkstatus_consensus_has_ipv6() and unit tests
commit28d4355a6ebe69c84d0ae31d7a0763f0a17f0151
authorteor <teor2345@gmail.com>
Sat, 2 Dec 2017 12:01:07 +0000 (2 23:01 +1100)
committerteor <teor2345@gmail.com>
Sun, 10 Dec 2017 13:34:19 +0000 (11 00:34 +1100)
tree8593797ea4d3432d783cd7fca47c04efb9762d60
parent241b676638285e63bd6e4ca5225444a4b16207be
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.
src/or/networkstatus.c
src/or/networkstatus.h
src/test/test_dir.c