From 1ce57618477ca19dd62752ed93157621f1f42b4f Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Thu, 30 Jan 2014 20:04:15 +0100 Subject: [PATCH] rename JWebserver -> RecursorWebServer --- pdns/pdns_recursor.cc | 2 +- pdns/ws-recursor.cc | 6 +++--- pdns/ws-recursor.hh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 0d8f9b8a53..c06a1ae2d9 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1918,7 +1918,7 @@ try if(::arg().mustDo("experimental-json-interface")) { L<registerApiHandler("/jsonstat", boost::bind(&JWebserver::jsonstat, this, _1, _2)); + d_ws->registerApiHandler("/jsonstat", boost::bind(&RecursorWebServer::jsonstat, this, _1, _2)); d_ws->go(); } -void JWebserver::jsonstat(HttpRequest* req, HttpResponse *resp) +void RecursorWebServer::jsonstat(HttpRequest* req, HttpResponse *resp) { string command; diff --git a/pdns/ws-recursor.hh b/pdns/ws-recursor.hh index ed40ee1c32..3f239d30c6 100644 --- a/pdns/ws-recursor.hh +++ b/pdns/ws-recursor.hh @@ -24,10 +24,10 @@ #include "mplexer.hh" #include "webserver.hh" -class JWebserver : public boost::noncopyable +class RecursorWebServer : public boost::noncopyable { public: - explicit JWebserver(FDMultiplexer* fdm); + explicit RecursorWebServer(FDMultiplexer* fdm); void jsonstat(HttpRequest* req, HttpResponse *resp); private: -- 2.47.3