1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-01-22 23:40:39 +01:00

Allowlist query improved (#563)

This commit is contained in:
nobody 2021-07-15 06:59:09 +02:00
parent 6bb9b2985f
commit a5e8757634
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

@ -136,6 +136,10 @@ helpers.getWildcard = function (initiatorDomain) {
helpers.checkAllowlisted = function (domain) {
let domainWithoutPrefix, wildcard, list;
if (domain === null) {
return false;
}
if (domain.startsWith(Address.WWW_PREFIX)) {
domainWithoutPrefix = domain.slice(Address.WWW_PREFIX.length);
}