1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Custom block screen (#1050)

This commit is contained in:
nobody
2022-07-10 06:55:41 +02:00
parent be16dbe84c
commit 1be3c1cf6d
7 changed files with 160 additions and 2 deletions

View File

@@ -226,6 +226,11 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
console.warn(`${LogString.PREFIX} ${LogString.MISSING_RESOURCE} ${channelHost}${channelPath}`);
log.append(initiator, channelHost + channelPath, '-', true);
}
if (Object.keys(mappings.cdn).includes(channelHost)) {
return {'result': 'blocked'};
}
return {
'result': false,
};