Feature: Support to forbidden the user in violation of rules

This commit is contained in:
yuanyuanxiang
2026-07-14 14:59:03 +02:00
parent 23c9a4f242
commit a646e0417d
11 changed files with 42 additions and 5 deletions

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();