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