src/http/Server.C | 4 ++-- src/web/FileUtils.C | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/http/Server.C b/src/http/Server.C index b26a444..200b2ce 100644 --- a/src/http/Server.C +++ b/src/http/Server.C @@ -331,8 +331,8 @@ std::vector Server::resolveAddress(asio::ip::tcp::resolver &r LOG_DEBUG_S(&wt_, "Failed to resolve hostname \"" << address << "\" as IPv4: " << Wt::AsioWrapper::system_error(errc).what()); // Resolve IPv6 - query = Wt::AsioWrapper::asio::ip::tcp::resolver::query(Wt::AsioWrapper::asio::ip::tcp::v6(), address, "http"); - for (Wt::AsioWrapper::asio::ip::tcp::resolver::iterator it = resolver.resolve(query, errc); + asio::ip::tcp::resolver::query query_v6(asio::ip::tcp::v6(), address, "http"); + for (asio::ip::tcp::resolver::iterator it = resolver.resolve(query_v6, errc); !errc && it != end; ++it) { result.push_back(it->endpoint().address()); } diff --git a/src/web/FileUtils.C b/src/web/FileUtils.C index 8d49571..a15f091 100644 --- a/src/web/FileUtils.C +++ b/src/web/FileUtils.C @@ -8,6 +8,7 @@ #include "web/FileUtils.h" #include +#include #include "web/WebUtils.h" #include "Wt/WException.h"