diff --git a/src/roles/server.hpp b/src/roles/server.hpp index 24a9616c18..701596e9aa 100644 --- a/src/roles/server.hpp +++ b/src/roles/server.hpp @@ -296,7 +296,8 @@ void server::listen(const std::string &host, const std::string &servic if (endpoint_iterator == end) { throw std::invalid_argument("Can't resolve host/service to listen"); } - listen(*endpoint_iterator,n); + const boost::asio::ip::tcp::endpoint &ep = *endpoint_iterator; + listen(ep,n); } template