mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: change regip to ip
This commit is contained in:
1 parent
fae452cc94
commit
49a6165472
5 files changed
+24
-18
No files matched your search
@@ -16,7 +16,7 @@ async function _address(
|
||||
if (bset.has(ip)) return;
|
||||
bset.add(ip);
|
||||
report({ message: `ip ${ip}` });
|
||||
const users = await db.collection('user').find({ $or: [{ loginip: ip }, { regip: ip }] }).toArray();
|
||||
const users = await db.collection('user').find({ ip }).toArray();
|
||||
const tasks = [];
|
||||
for (const udoc of users) {
|
||||
tasks.push(_user(udoc._id, bset, uset, dset, dryrun, report));
|
||||
|
||||
Reference in new issue
Block a user