1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 17:29:24 +08:00

add: load cracker without pause

This commit is contained in:
0O0o0oOoO00
2025-11-21 18:02:29 +08:00
parent b4d1950299
commit e3fdc85c27
13 changed files with 58 additions and 1 deletions

View File

@@ -1065,6 +1065,17 @@ CrackerServer::CrackerServer() {
CRACK_OK();
});
Post("/init_without_pause", [](const httplib::Request& req, httplib::Response& res) {
try {
Cracker::Instance(false);
} catch (std::exception& e) {
SPDLOG_ERROR("Init failed: {}", e.what());
res.status = 500;
return;
}
CRACK_OK();
});
std::thread([this] {
SPDLOG_INFO("Start server on port 23897");
while(true) {