mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-04-22 02:08:00 +00:00
Disable isUp check (#150)
This commit is contained in:
+9
-7
@@ -193,15 +193,17 @@
|
||||
}
|
||||
|
||||
async function isUp (url) {
|
||||
try {
|
||||
await fetchTimeout(url, { method: 'HEAD', mode: 'no-cors' });
|
||||
// try {
|
||||
// await fetchTimeout(url, { method: 'HEAD', mode: 'no-cors' });
|
||||
|
||||
const response = await fetchTimeout(`https://proxy.dotapps.workers.dev/?${url}`, { follow: 'error' });
|
||||
// const response = await fetchTimeout(`https://proxy.dotapps.workers.dev/?${url}`, { follow: 'error' });
|
||||
|
||||
return response.status === 200;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
// return response.status === 200;
|
||||
// } catch (error) {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
async function getBalance (key) {
|
||||
|
||||
Reference in New Issue
Block a user