This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/hooks/misc/http_start_request.cpp

19 lines
635 B
C++
Raw Normal View History

#include "hooking.hpp"
#include "logger/stack_trace.hpp"
#include "pointers.hpp"
#include "util/string_conversions.hpp"
namespace big
{
bool hooks::http_start_request(void* request, const char* uri)
{
if (strstr(uri, "Bonus"))
{
// This is for worst case scenario where a report does slip through the cracks...
// Lets make it go somewhere it doesn't matter -- don't let the reports reach their servers!
LOG(WARNING) << "Blocked bonus report!";
uri = "https://0.0.0.0/";
}
return g_hooking->get_original<hooks::http_start_request>()(request, uri);
}
}