mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Reindent a block in dns.c
This commit is contained in:
parent
807b781a3d
commit
0487c0d579
46
src/or/dns.c
46
src/or/dns.c
@ -1714,31 +1714,29 @@ launch_test_addresses(int fd, short event, void *args)
|
|||||||
* be an exit server.*/
|
* be an exit server.*/
|
||||||
if (options->ServerDNSTestAddresses) {
|
if (options->ServerDNSTestAddresses) {
|
||||||
|
|
||||||
tor_assert(the_evdns_base);
|
tor_assert(the_evdns_base);
|
||||||
SMARTLIST_FOREACH_BEGIN(options->ServerDNSTestAddresses,
|
SMARTLIST_FOREACH_BEGIN(options->ServerDNSTestAddresses,
|
||||||
const char *, address) {
|
const char *, address) {
|
||||||
char *a = tor_strdup(address);
|
char *a = tor_strdup(address);
|
||||||
req = evdns_base_resolve_ipv4(the_evdns_base,
|
req = evdns_base_resolve_ipv4(the_evdns_base,
|
||||||
address, DNS_QUERY_NO_SEARCH, evdns_callback, a);
|
address, DNS_QUERY_NO_SEARCH, evdns_callback, a);
|
||||||
|
|
||||||
if (!req) {
|
|
||||||
log_info(LD_EXIT, "eventdns rejected test address %s",
|
|
||||||
escaped_safe_str(address));
|
|
||||||
tor_free(a);
|
|
||||||
}
|
|
||||||
a = tor_strdup(address);
|
|
||||||
req = evdns_base_resolve_ipv6(the_evdns_base,
|
|
||||||
address, DNS_QUERY_NO_SEARCH, evdns_callback, a);
|
|
||||||
++n_ipv6_requests_made;
|
|
||||||
if (!req) {
|
|
||||||
log_info(LD_EXIT, "eventdns rejected test address %s",
|
|
||||||
escaped_safe_str(address));
|
|
||||||
tor_free(a);
|
|
||||||
}
|
|
||||||
} SMARTLIST_FOREACH_END(address);
|
|
||||||
|
|
||||||
} /*XXXX REINDENT */
|
|
||||||
|
|
||||||
|
if (!req) {
|
||||||
|
log_info(LD_EXIT, "eventdns rejected test address %s",
|
||||||
|
escaped_safe_str(address));
|
||||||
|
tor_free(a);
|
||||||
|
}
|
||||||
|
a = tor_strdup(address);
|
||||||
|
req = evdns_base_resolve_ipv6(the_evdns_base,
|
||||||
|
address, DNS_QUERY_NO_SEARCH, evdns_callback, a);
|
||||||
|
++n_ipv6_requests_made;
|
||||||
|
if (!req) {
|
||||||
|
log_info(LD_EXIT, "eventdns rejected test address %s",
|
||||||
|
escaped_safe_str(address));
|
||||||
|
tor_free(a);
|
||||||
|
}
|
||||||
|
} SMARTLIST_FOREACH_END(address);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define N_WILDCARD_CHECKS 2
|
#define N_WILDCARD_CHECKS 2
|
||||||
|
Loading…
Reference in New Issue
Block a user