From 578b2b186479dfcc1724516c1503318a6d750b05 Mon Sep 17 00:00:00 2001 From: NoobishSVK Date: Sun, 3 Nov 2024 22:39:38 +0100 Subject: [PATCH] opera vpn websocket kick --- server/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/index.js b/server/index.js index aef8fe7..4ca8401 100644 --- a/server/index.js +++ b/server/index.js @@ -387,6 +387,10 @@ wss.on('connection', (ws, request) => { const options = { year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit' }; const connectionTime = new Date().toLocaleString([], options); + if (locationInfo.org?.includes("AS205016 HERN Labs AB")) { // anti opera VPN block + return; + } + if(locationInfo.country === undefined) { const userData = { ip: clientIp, location: 'Unknown', time: connectionTime, instance: ws }; storage.connectedUsers.push(userData);