Merge pull request #6 from cp6/dev

Fixed wrong url for DNS & up/down calls
This commit is contained in:
corbpie 2021-01-29 12:01:25 +11:00 committed by GitHub
commit aa4a4f9b0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,7 +270,7 @@ $(document).on("click", "#fillIpv4", function () {
if (host_name) { if (host_name) {
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "get_ip.php", url: "calls.php",
data: {"type" : "dns_search", "hostname": host_name, "type": "A"}, data: {"type" : "dns_search", "hostname": host_name, "type": "A"},
success: function (result) { success: function (result) {
$('#ipv4').val(result); $('#ipv4').val(result);
@ -280,7 +280,7 @@ $(document).on("click", "#fillIpv4", function () {
setTimeout(function(){ setTimeout(function(){
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "get_ip.php", url: "calls.php",
data: {"type" : "dns_search", "hostname": host_name, "type": "AAAA"}, data: {"type" : "dns_search", "hostname": host_name, "type": "AAAA"},
success: function (result) { success: function (result) {
if (result != ''){ if (result != ''){
@ -300,7 +300,7 @@ $(document).on("click", "#checkUpStatus", function () {
if (host_name) { if (host_name) {
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "check_up.php", url: "calls.php",
data: {"type": "check_up", "host": host_name}, data: {"type": "check_up", "host": host_name},
success: function (result) { success: function (result) {
if (result == 1) { if (result == 1) {