style: variable naming

This commit is contained in:
2026-04-11 13:07:45 -03:00
parent 1fdc7450cd
commit 3f9409b8c6
+10 -10
View File
@@ -6,7 +6,7 @@
#include <windows.h>
#include <wininet.h>
bool setProxy(bool enable, const std::string& proxyAddr)
bool setProxyAddress(bool enable, const std::string& proxyAddr)
{
INTERNET_PER_CONN_OPTION_LIST list;
INTERNET_PER_CONN_OPTION options[3];
@@ -53,7 +53,7 @@ bool setProxy(bool enable, const std::string& proxyAddr)
}
bool running = true;
Proxy* g_Proxy = nullptr;
Proxy* proxy = nullptr;
void cleanup()
{
@@ -64,12 +64,12 @@ void cleanup()
cleaned = true;
Log::info("Restoring system proxy settings");
setProxy(false, "");
setProxyAddress(false, "");
if (g_Proxy)
if (proxy)
{
Log::info("Shutting down proxy");
g_Proxy->shutdown();
proxy->shutdown();
}
}
@@ -97,14 +97,14 @@ int main()
proxy setup
*/
Log::info("Starting proxy");
g_Proxy = new Proxy();
if (!g_Proxy->init())
proxy = new Proxy();
if (!proxy->init())
{
Log::error("Proxy failed to start");
return 1;
}
g_Proxy->addWhitelistDomain("bhvrdbd.com");
setProxy(true, std::format("127.0.0.1:{}", PROXY_PORT));
proxy->addWhitelistDomain("bhvrdbd.com");
setProxyAddress(true, std::format("127.0.0.1:{}", PROXY_PORT));
/*
Spoofer setup
@@ -112,7 +112,7 @@ int main()
Log::info("Spoofer init");
Spoofer* spoofer = new Spoofer();
spoofer->init(g_Proxy);
spoofer->init(proxy);
/*
pause