diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-12-19 09:07:01 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-12-19 09:19:02 -0500 |
commit | eedab30a7bd5663984264bb5f9ef43cf57450143 (patch) | |
tree | 1c64f572b7daf364b21bdbd410d599b206b51fd4 /src/feature/dirauth/reachability.c | |
parent | bc0f1076d53e57d1a4ba19170a1c27d9eaee34e8 (diff) | |
download | tor-eedab30a7bd5663984264bb5f9ef43cf57450143.tar.gz tor-eedab30a7bd5663984264bb5f9ef43cf57450143.zip |
Move AuthDirHasIPv6Connectivity into dirauth module.
Diffstat (limited to 'src/feature/dirauth/reachability.c')
-rw-r--r-- | src/feature/dirauth/reachability.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/feature/dirauth/reachability.c b/src/feature/dirauth/reachability.c index 883b692cbb..2f883d5034 100644 --- a/src/feature/dirauth/reachability.c +++ b/src/feature/dirauth/reachability.c @@ -17,6 +17,7 @@ #include "core/or/channeltls.h" #include "core/or/command.h" #include "feature/dirauth/authmode.h" +#include "feature/dirauth/dirauth_sys.h" #include "feature/nodelist/describe.h" #include "feature/nodelist/nodelist.h" #include "feature/nodelist/routerinfo.h" @@ -24,6 +25,7 @@ #include "feature/nodelist/torcert.h" #include "feature/stats/rephist.h" +#include "feature/dirauth/dirauth_options_st.h" #include "feature/nodelist/node_st.h" #include "feature/nodelist/routerinfo_st.h" #include "feature/nodelist/routerlist_st.h" @@ -154,7 +156,7 @@ dirserv_single_reachability_test(time_t now, routerinfo_t *router) if (chan) command_setup_channel(chan); /* Possible IPv6. */ - if (get_options()->AuthDirHasIPv6Connectivity == 1 && + if (dirauth_get_options()->AuthDirHasIPv6Connectivity == 1 && !tor_addr_is_null(&router->ipv6_addr)) { char addrstr[TOR_ADDR_BUF_LEN]; log_debug(LD_OR, "Testing reachability of %s at %s:%u.", |