1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-01-28 01:59:18 +01:00

Fixed wrong initiator url (#1050)

This commit is contained in:
nobody 2022-07-22 05:49:49 +02:00
parent 15565ca720
commit 659430da84
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

@ -227,7 +227,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
log.append(initiator, channelHost + channelPath, '-', true);
}
if (Object.keys(mappings.cdn).includes(channelHost)) {
if (Object.keys(mappings.cdn).includes(helpers.extractDomainFromUrl(initiator, true))) {
return {'result': 'blocked'};
}