feat: update ConfigManager and ProxyServer to utilize Settings

- Modified ConfigManager to accept a Settings object for improved configuration management.
- Updated ProxyServer to initialize with Settings, enhancing dependency injection.
This commit is contained in:
aiamnezia
2025-12-31 21:16:45 +04:00
parent 4492b0af7e
commit 412e69af9b
8 changed files with 229 additions and 715 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ CoreController::CoreController(const QSharedPointer<VpnConnection> &vpnConnectio
void CoreController::initLocalProxy()
{
#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
m_proxyServer.reset(new ProxyServer(this));
m_proxyServer.reset(new ProxyServer(m_settings, this));
auto syncLocalProxy = [this]() {
if (!m_proxyServer) {