From b2c0bbfb3828bd48be96b13f749db4b489b2debb Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 23 Mar 2018 12:02:42 +0100 Subject: [PATCH] rec: move the rpz stats to a different url (cherry picked from commit 64c9da8c1b373bc55ceb30b4d97c57fded2a43f0) --- 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 5774ac88e..7b2c9bc85 100644 --- a/pdns/ws-recursor.cc +++ b/pdns/ws-recursor.cc @@ -383,7 +383,7 @@ static void apiServerCacheFlush(HttpRequest* req, HttpResponse* resp) { }); } -static void apiServerRPZ(HttpRequest* req, HttpResponse* resp) { +static void apiServerRPZStats(HttpRequest* req, HttpResponse* resp) { if(req->method != "GET") throw HttpMethodNotAllowedException(); @@ -456,7 +456,7 @@ RecursorWebServer::RecursorWebServer(FDMultiplexer* fdm) 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); - d_ws->registerApiHandler("/api/v1/servers/localhost/rpz", &apiServerRPZ); + d_ws->registerApiHandler("/api/v1/servers/localhost/rpzstatistics", &apiServerRPZStats); d_ws->registerApiHandler("/api/v1/servers/localhost/search-log", &apiServerSearchLog); d_ws->registerApiHandler("/api/v1/servers/localhost/search-data", &apiServerSearchData); d_ws->registerApiHandler("/api/v1/servers/localhost/statistics", &apiServerStatistics); -- 2.49.0