diff options
Diffstat (limited to 'louloulibs/network/dns_handler.hpp')
-rw-r--r-- | louloulibs/network/dns_handler.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/louloulibs/network/dns_handler.hpp b/louloulibs/network/dns_handler.hpp index a515f52..ec35374 100644 --- a/louloulibs/network/dns_handler.hpp +++ b/louloulibs/network/dns_handler.hpp @@ -11,7 +11,7 @@ class DNSSocketHandler; # include <ares.h> # include <memory> # include <string> -# include <list> +# include <vector> void on_hostname4_resolved(void* arg, int status, int, struct hostent* hostent); void on_hostname6_resolved(void* arg, int status, int, struct hostent* hostent); @@ -49,7 +49,7 @@ private: * call to ares_fds. DNSSocketHandlers are added to it or removed from it * in the watch_dns_sockets() method */ - std::list<std::unique_ptr<DNSSocketHandler>> socket_handlers; + std::vector<std::unique_ptr<DNSSocketHandler>> socket_handlers; ares_channel channel; DNSHandler(const DNSHandler&) = delete; |