mirror of
https://codeberg.org/alicia/web-check.git
synced 2026-03-14 14:45:48 +01:00
Fixes block-lists job (#50)
This commit is contained in:
parent
79c88a5d9a
commit
5297b2ffe7
1 changed files with 2 additions and 2 deletions
|
|
@ -94,11 +94,11 @@ const checkDomainAgainstDnsServers = async (domain) => {
|
|||
return results;
|
||||
};
|
||||
|
||||
const handler = middleware(async (url) => {
|
||||
const handler = async (url) => {
|
||||
const domain = new URL(url).hostname;
|
||||
const results = await checkDomainAgainstDnsServers(domain);
|
||||
return { blocklists: results };
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = middleware(handler);
|
||||
module.exports.handler = middleware(handler);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue