From 8f6fbbb2442ef820d427e8db63991ed39b111ed5 Mon Sep 17 00:00:00 2001 From: neru Date: Mon, 13 Apr 2026 01:09:06 -0300 Subject: [PATCH] feat: initialize cache cleaner --- src/unlocker/main.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/unlocker/main.cpp b/src/unlocker/main.cpp index e6a91c8..4731462 100644 --- a/src/unlocker/main.cpp +++ b/src/unlocker/main.cpp @@ -1,5 +1,6 @@ #include "proxy.h" #include "spoofing.h" +#include "cachecleaner.h" #include @@ -55,6 +56,7 @@ bool setProxyAddress(bool enable, const std::string& proxyAddr) bool running = true; Proxy* proxy = nullptr; +CacheCleaner* cleaner = nullptr; void cleanup() { @@ -72,6 +74,12 @@ void cleanup() Log::info("Shutting down proxy"); proxy->shutdown(); } + + if (cleaner) + { + Log::info("Shutting down cache cleaner"); + cleaner->shutdown(); + } } BOOL WINAPI consoleHandler(DWORD dwType) @@ -117,6 +125,13 @@ int main() spoofer->init(proxy); + /* + cache cleaner setup + */ + Log::info("Cache cleaner init"); + cleaner = new CacheCleaner(); + cleaner->init(); + /* pause */