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

Allowlist query improved (#563)

This commit is contained in:
nobody
2021-07-15 06:59:09 +02:00
parent 6bb9b2985f
commit a5e8757634

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);
}