From: Christian Hofstaedtler Date: Thu, 30 Jan 2014 19:04:15 +0000 (+0100) Subject: rename JWebserver -> RecursorWebServer X-Git-Tag: rec-3.6.0-rc1~211^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ce57618477ca19dd62752ed93157621f1f42b4f;p=thirdparty%2Fpdns.git rename JWebserver -> RecursorWebServer --- 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: