Fix a build issue when compiling without cares
This commit is contained in:
@@ -23,7 +23,9 @@ void Resolver::resolve(const std::string& hostname, const std::string& port,
|
|||||||
{
|
{
|
||||||
this->error_cb = error_cb;
|
this->error_cb = error_cb;
|
||||||
this->success_cb = success_cb;
|
this->success_cb = success_cb;
|
||||||
|
#ifdef CARES_FOUND
|
||||||
this->port = port;
|
this->port = port;
|
||||||
|
#endif
|
||||||
|
|
||||||
this->start_resolving(hostname, port);
|
this->start_resolving(hostname, port);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,12 +66,12 @@ public:
|
|||||||
#ifdef CARES_FOUND
|
#ifdef CARES_FOUND
|
||||||
this->resolved6 = false;
|
this->resolved6 = false;
|
||||||
this->resolved4 = false;
|
this->resolved4 = false;
|
||||||
#endif
|
|
||||||
this->resolved = false;
|
|
||||||
this->resolving = false;
|
this->resolving = false;
|
||||||
this->addr.reset();
|
|
||||||
this->cares_addrinfo = nullptr;
|
this->cares_addrinfo = nullptr;
|
||||||
this->port.clear();
|
this->port.clear();
|
||||||
|
#endif
|
||||||
|
this->resolved = false;
|
||||||
|
this->addr.reset();
|
||||||
this->error_msg.clear();
|
this->error_msg.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user