From 52f40d27a1a9bd3fcfa2f10ba9bd82cf35ecd8d6 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 27 Nov 2015 17:58:57 +0100 Subject: [PATCH] dnsdist: show correct version in the webpage --- pdns/dnsdist-web.cc | 2 +- pdns/dnsdistdist/html/local.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdist-web.cc b/pdns/dnsdist-web.cc index e224fe46e..fbd41e9bd 100644 --- a/pdns/dnsdist-web.cc +++ b/pdns/dnsdist-web.cc @@ -149,7 +149,7 @@ static void connectionThread(int sock, ComboAddress remote, string password) Json my_json = Json::object { { "daemon_type", "dnsdist" }, - { "version", "0.1"}, + { "version", VERSION}, { "servers", servers}, { "rules", rules}, }; diff --git a/pdns/dnsdistdist/html/local.js b/pdns/dnsdistdist/html/local.js index 51df5a357..9e44f7656 100644 --- a/pdns/dnsdistdist/html/local.js +++ b/pdns/dnsdistdist/html/local.js @@ -186,7 +186,7 @@ $(document).ready(function() { $.ajax({ url: 'servers/localhost', type: 'GET', dataType: 'json', success: function(data) { - $("#version").text("PowerDNS "+data["daemon_type"]+" "+data["version"]); + $("#version").text(data["daemon_type"]+" "+data["version"]); var bouw=""; $.each(data["servers"], function(a,b) { bouw = bouw + (""); -- 2.49.0
#NameAddressStatusQueriesDropsQPSOutWeightOrderPools
"+b["id"]+""+b["name"]+""+b["address"]+""+b["state"]+"