diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-10-20 20:15:06 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2018-10-20 20:34:08 +0300 |
commit | d827902cb1107593473552974be5fcbb1fbb4abe (patch) | |
tree | 42ee1b9c484a52330d965dee11baec88a3a27ab3 /src/feature/relay/dns.h | |
parent | 1a1b088f8cab73ca258c35e83d21df900f8e2e32 (diff) | |
download | tor-d827902cb1107593473552974be5fcbb1fbb4abe.tar.gz tor-d827902cb1107593473552974be5fcbb1fbb4abe.zip |
Unit test for DNS fallback in configure_nameservers
Diffstat (limited to 'src/feature/relay/dns.h')
-rw-r--r-- | src/feature/relay/dns.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/relay/dns.h b/src/feature/relay/dns.h index 1dd6f903d1..3a17ea7b36 100644 --- a/src/feature/relay/dns.h +++ b/src/feature/relay/dns.h @@ -45,6 +45,9 @@ size_t dns_cache_handle_oom(time_t now, size_t min_remove_bytes); #ifdef DNS_PRIVATE #include "feature/relay/dns_structs.h" +size_t number_of_configured_nameservers(void); +tor_addr_t *configured_nameserver_address(const size_t idx); + MOCK_DECL(STATIC int,dns_resolve_impl,(edge_connection_t *exitconn, int is_resolve,or_circuit_t *oncirc, char **hostname_out, int *made_connection_pending_out, cached_resolve_t **resolve_out)); |