white-dawn proxy

This commit is contained in:
Jaco Greeff
2021-02-18 11:07:36 +01:00
parent 36c43f981b
commit 7a435b4091
+4
View File
@@ -227,6 +227,10 @@
}
async function isUp (url) {
fetchTimeout(`https://white-dawn-0191.dotapps.workers.dev/?url=${encodeURIComponent(url)}`)
.then((response) => console.log(url, response))
.catch((error) => console.error(url, error));
return fetchTimeout(url, { method: 'HEAD', mode: 'no-cors' })
.then(() =>
fetchTimeout(`https://api.allorigins.win/get?url=${encodeURIComponent(url)}`)