
* fix(anticheat): rewrite AC bypass again (the old one isn't detected but this is cleaner) * fix(chat): some chat tweaks * fix(anticheat): fix memory leak * feat(lua): add is_player_friend * fix(protections): fix possible false positives with the vehicle task mismatch protection * feat(protections): add debug logs to trace false positive * fix(spam): add some more stuff
19 lines
635 B
C++
19 lines
635 B
C++
#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);
|
|
}
|
|
} |