1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-28 02:49:58 +01:00

Return value optimized

This commit is contained in:
nobody 2021-01-30 06:45:30 +01:00
parent e597707eae
commit 1a9d73634c
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

@ -140,7 +140,7 @@ helpers.checkAllowlisted = function(domain) {
wildcard = helpers.getWildcard(domain);
list = requestAnalyzer.allowlistedDomains;
return list[domain] || list[domainWithoutPrefix] || list[wildcard] || list[domainWithoutPrefix];
return Boolean(list[domain] || list[domainWithoutPrefix] || list[wildcard] || list[domainWithoutPrefix]);
};
helpers.extractFilenameFromPath = function (path) {