This commit is contained in:
syuilo 2019-05-15 17:05:41 +09:00
parent c8f549e562
commit bdb8301383

View file

@ -53,6 +53,7 @@ export default define(meta, async (ps) => {
if (blackDomains.length > 0) {
query.andWhere(new Brackets(qb => {
for (const blackDomain of blackDomains) {
qb.andWhere(new Brackets(qb => {
const subDomains = blackDomain.split('.');
let i = 0;
for (const subDomain of subDomains) {
@ -63,6 +64,7 @@ export default define(meta, async (ps) => {
qb.orWhere(`log.domain[${i + 1}] != :${p}`, { [p]: subDomain });
i++;
}
}));
}
}));
}