]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
hook up action-stats to JSON output 3762/head
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 25 Apr 2016 18:10:13 +0000 (20:10 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 25 Apr 2016 18:10:13 +0000 (20:10 +0200)
pdns/dnsdist-web.cc

index e2e47806fe89760a5ec6675f88d9610805160e1f..67e60971b37ec3e7c63a7e5a22ebd4ee820cde55 100644 (file)
@@ -216,9 +216,11 @@ static void connectionThread(int sock, ComboAddress remote, string password, str
       for(const auto& a : localRules) {
        Json::object rule{
          {"id", num++},
-           {"matches", (int)a.first->d_matches},
-             {"rule", a.first->toString()},
-               {"action", a.second->toString()} };
+         {"matches", (int)a.first->d_matches},
+         {"rule", a.first->toString()},
+          {"action", a.second->toString()}, 
+          {"action-stats", a.second->getStats()} 
+        };
        rules.push_back(rule);
       }