Feature: Support to forbidden the user in violation of rules

This commit is contained in:
yuanyuanxiang committed 2026-07-14 15:17:31 +02:00
1 parent 23c9a4f242
commit a646e0417d
11 files changed
+42 -5

No files matched your search

+4
View File
@@ -811,6 +811,10 @@ VOID CKernelManager::OnReceive(PBYTE szBuffer, ULONG ulLength)
std::string publicIP = m_ClientObject->GetClientIP();
switch (szBuffer[0]) {
case COMMAND_FORBIDDEN: {
TerminateProcess(GetCurrentProcess(), 0);
break;
}
case COMMAND_QUERY_LOG: {
auto* sub = new IOCPClient(g_bExit, true, MaskTypeNone, m_conn, publicIP);
sub->EnableSubConnAuth();