adjust proxycheck during pixel request
This commit is contained in:
parent
c887838e0a
commit
a08ba00940
|
@ -200,7 +200,10 @@ export default async function drawByOffsets(
|
|||
);
|
||||
|
||||
if (needProxycheck) {
|
||||
await isIPAllowed(ip, true);
|
||||
const pc = await isIPAllowed(ip, true);
|
||||
if (pc.status > 0) {
|
||||
throw new Error(11);
|
||||
}
|
||||
}
|
||||
|
||||
for (let u = 0; u < pxlCnt; u += 1) {
|
||||
|
|
|
@ -13,9 +13,7 @@ async function banme(req, res) {
|
|||
reason = 'Userscript Bot';
|
||||
} else if (code === '2') {
|
||||
const ua = req.headers['user-agent'];
|
||||
if (ua && (
|
||||
(ua.includes('OPR/') && ua.includes('Android')) || ua.includes('iPhone')
|
||||
)) {
|
||||
if (ua && (ua.includes('Android') || ua.includes('iPhone'))) {
|
||||
res.json({
|
||||
status: 'nope',
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user