From 3f29a829397f077f552720bbd882b0bd03ea0864 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 22 Sep 2020 10:39:49 +0200 Subject: [PATCH] Minimal backport of #9070 --- pdns/ws-recursor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc index 013159dd4f..26f992fae3 100644 --- a/pdns/ws-recursor.cc +++ b/pdns/ws-recursor.cc @@ -512,7 +512,7 @@ RecursorWebServer::RecursorWebServer(FDMultiplexer* fdm) d_ws->bind(); // legacy dispatch - d_ws->registerApiHandler("/jsonstat", boost::bind(&RecursorWebServer::jsonstat, this, _1, _2), true); + d_ws->registerApiHandler("/jsonstat", std::bind(&RecursorWebServer::jsonstat, this, std::placeholders::_1, std::placeholders::_2), true); d_ws->registerApiHandler("/api/v1/servers/localhost/cache/flush", &apiServerCacheFlush); d_ws->registerApiHandler("/api/v1/servers/localhost/config/allow-from", &apiServerConfigAllowFrom); d_ws->registerApiHandler("/api/v1/servers/localhost/config", &apiServerConfig); @@ -747,5 +747,5 @@ void AsyncWebServer::go() { auto server = std::dynamic_pointer_cast(d_server); if (!server) return; - server->asyncWaitForConnections(d_fdm, boost::bind(&AsyncWebServer::serveConnection, this, _1)); + server->asyncWaitForConnections(d_fdm, std::bind(&AsyncWebServer::serveConnection, this, std::placeholders::_1)); } -- 2.47.2