web clients get removed later by the proxy
This commit is contained in:
parent
3ac0bc6247
commit
7acc70464e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user