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:
parent
6bb9b2985f
commit
a5e8757634
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user