mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
Check the availability of ares_set_servers and ares_addr_node.
This commit is contained in:
parent
8386013296
commit
d3d1293974
9 changed files with 47 additions and 12 deletions
|
@ -84,7 +84,11 @@ bool DHTEntryPointNameResolveCommand::execute()
|
|||
} else {
|
||||
family = AF_INET;
|
||||
}
|
||||
resolver_.reset(new AsyncNameResolver(family, e_->getAsyncDNSServers()));
|
||||
resolver_.reset(new AsyncNameResolver(family
|
||||
#ifdef HAVE_ARES_ADDR_NODE
|
||||
, e_->getAsyncDNSServers()
|
||||
#endif // HAVE_ARES_ADDR_NODE
|
||||
));
|
||||
}
|
||||
#endif // ENABLE_ASYNC_DNS
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue