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