style: variable naming
This commit is contained in:
+10
-10
@@ -6,7 +6,7 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <wininet.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_LIST list;
|
||||||
INTERNET_PER_CONN_OPTION options[3];
|
INTERNET_PER_CONN_OPTION options[3];
|
||||||
@@ -53,7 +53,7 @@ bool setProxy(bool enable, const std::string& proxyAddr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool running = true;
|
bool running = true;
|
||||||
Proxy* g_Proxy = nullptr;
|
Proxy* proxy = nullptr;
|
||||||
|
|
||||||
void cleanup()
|
void cleanup()
|
||||||
{
|
{
|
||||||
@@ -64,12 +64,12 @@ void cleanup()
|
|||||||
cleaned = true;
|
cleaned = true;
|
||||||
|
|
||||||
Log::info("Restoring system proxy settings");
|
Log::info("Restoring system proxy settings");
|
||||||
setProxy(false, "");
|
setProxyAddress(false, "");
|
||||||
|
|
||||||
if (g_Proxy)
|
if (proxy)
|
||||||
{
|
{
|
||||||
Log::info("Shutting down proxy");
|
Log::info("Shutting down proxy");
|
||||||
g_Proxy->shutdown();
|
proxy->shutdown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,14 +97,14 @@ int main()
|
|||||||
proxy setup
|
proxy setup
|
||||||
*/
|
*/
|
||||||
Log::info("Starting proxy");
|
Log::info("Starting proxy");
|
||||||
g_Proxy = new Proxy();
|
proxy = new Proxy();
|
||||||
if (!g_Proxy->init())
|
if (!proxy->init())
|
||||||
{
|
{
|
||||||
Log::error("Proxy failed to start");
|
Log::error("Proxy failed to start");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
g_Proxy->addWhitelistDomain("bhvrdbd.com");
|
proxy->addWhitelistDomain("bhvrdbd.com");
|
||||||
setProxy(true, std::format("127.0.0.1:{}", PROXY_PORT));
|
setProxyAddress(true, std::format("127.0.0.1:{}", PROXY_PORT));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Spoofer setup
|
Spoofer setup
|
||||||
@@ -112,7 +112,7 @@ int main()
|
|||||||
Log::info("Spoofer init");
|
Log::info("Spoofer init");
|
||||||
Spoofer* spoofer = new Spoofer();
|
Spoofer* spoofer = new Spoofer();
|
||||||
|
|
||||||
spoofer->init(g_Proxy);
|
spoofer->init(proxy);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
pause
|
pause
|
||||||
|
|||||||
Reference in New Issue
Block a user