From 7acc70464e8a6bc5206e0c93197430f9ce6bad9b Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 13 Oct 2021 22:54:42 +0200 Subject: [PATCH] web clients get removed later by the proxy --- core/src/packets.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/packets.cpp b/core/src/packets.cpp index 76a5e63..cdad7c5 100644 --- a/core/src/packets.cpp +++ b/core/src/packets.cpp @@ -399,11 +399,10 @@ void AOClient::pktWebSocketIp(AreaData* area, int argc, QStringList argv, AOPack #endif m_remote_ip = QHostAddress(argv[0]); - if (isIPBanned(m_remote_ip)){ + if (server->isIPBanned(m_remote_ip)){ QString l_reason = "Your IP has been banned by a moderator."; AOPacket l_ban_reason("BD", {l_reason}); m_socket->write(l_ban_reason.toUtf8()); - client->deleteLater(); m_socket->close(); return; }