diff --git a/src/core/draw.js b/src/core/draw.js index 2fdf334..4895e4b 100644 --- a/src/core/draw.js +++ b/src/core/draw.js @@ -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) { diff --git a/src/routes/api/banme.js b/src/routes/api/banme.js index 9d7303e..02b4344 100644 --- a/src/routes/api/banme.js +++ b/src/routes/api/banme.js @@ -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', });