Retry dns check

This commit is contained in:
Johannes
2016-10-23 23:10:49 +02:00
parent 30e91eb812
commit b7e36a6f33
+5 -2
View File
@@ -108,8 +108,11 @@ $(function () {
type: 'POST',
url: '/api/v1/dns',
data: JSON.stringify(data),
success: function (data) { console.log('data: ' + data); },
contentType: 'application/json'
contentType: 'application/json',
success: function (data, status) { console.log('data: ', status, data); },
error: function () {
setTimeout(waitForDNS.bind(null, fqdn, ip), 5000);
},
});
}