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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user