fix: restore settings before shutting down proxy
This commit is contained in:
@@ -53,14 +53,14 @@ void cleanup()
|
|||||||
if (cleaned) return;
|
if (cleaned) return;
|
||||||
cleaned = true;
|
cleaned = true;
|
||||||
|
|
||||||
|
Log::info("Restoring system proxy settings");
|
||||||
|
setProxy(false, "");
|
||||||
|
|
||||||
if (g_Proxy)
|
if (g_Proxy)
|
||||||
{
|
{
|
||||||
Log::info("Shutting down proxy");
|
Log::info("Shutting down proxy");
|
||||||
g_Proxy->shutdown();
|
g_Proxy->shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
Log::info("Restoring system proxy settings");
|
|
||||||
setProxy(false, "");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL WINAPI consoleHandler(DWORD dwType)
|
BOOL WINAPI consoleHandler(DWORD dwType)
|
||||||
|
|||||||
Reference in New Issue
Block a user