]> granicus.if.org Git - pdns/commitdiff
Maurice Makaay spotted that dnsdist built-in-webserver URLs were needlessly absolute...
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 26 Nov 2015 15:16:14 +0000 (16:16 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 26 Nov 2015 15:16:14 +0000 (16:16 +0100)
pdns/dnsdistdist/html/local.js

index 1e9225b2c3ca0e83b93dd0f7045e4331bd307066..51df5a357520522bd9840257a4747c9d3629d6a2 100644 (file)
@@ -49,7 +49,7 @@ $(document).ready(function() {
     function updateRingBuffers()
     {
        var filtered=$("#filter1").is(':checked')
-       var qstring='/jsonstat?command=get-query-ring&name=queries';
+       var qstring='jsonstat?command=get-query-ring&name=queries';
        if(filtered)
            qstring=qstring+"&public-filtered=1";
 
@@ -77,7 +77,7 @@ $(document).ready(function() {
                  });
 
        filtered=$("#filter2").is(':checked')
-       qstring='/jsonstat?command=get-query-ring&name=servfail-queries';
+       qstring='jsonstat?command=get-query-ring&name=servfail-queries';
        if(filtered)
            qstring=qstring+"&public-filtered=1";
 
@@ -101,7 +101,7 @@ $(document).ready(function() {
 
                  });
 
-       $.getJSON('/jsonstat?command=get-remote-ring&name=remotes', 
+       $.getJSON('jsonstat?command=get-remote-ring&name=remotes', 
                  function(data) {
                      var bouw="<table><tr><th>Number</th><th>Remote</th></tr>";
                      var num=0, total=0, rest=0;
@@ -119,7 +119,7 @@ $(document).ready(function() {
 
                  });
 
-       $.getJSON('/jsonstat?command=get-remote-ring&name=servfail-remotes', 
+       $.getJSON('jsonstat?command=get-remote-ring&name=servfail-remotes', 
                  function(data) {
                      var bouw="<table><tr><th>Number</th><th>Servfail Remote</th></tr>";
                      var num=0, total=0, rest=0;
@@ -144,7 +144,7 @@ $(document).ready(function() {
     {
 
        $.ajax({
-            url: '/jsonstat?command=stats',
+            url: 'jsonstat?command=stats',
             type: 'GET',
             dataType: 'jsonp',
             success: function(data, x, y) {
@@ -184,7 +184,7 @@ $(document).ready(function() {
             },
         });
        
-       $.ajax({ url: '/servers/localhost', type: 'GET', dataType: 'json',
+       $.ajax({ url: 'servers/localhost', type: 'GET', dataType: 'json',
                 success: function(data) {
                     $("#version").text("PowerDNS "+data["daemon_type"]+" "+data["version"]);
                     var bouw="<table><tr align=right><th>#</th><th align=left>Name</th><th align=left>Address</th><th>Status</th><th>Queries</th><th>Drops</th><th>QPS</th><th>Out</th><th>Weight</th><th>Order</th><th align=left>Pools</th></tr>";