From ab0ee60563672bb963eb823e7a4f2e31b556fae3 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Mon, 27 Jun 2022 13:09:10 +0200 Subject: [PATCH] [Network] Disable unused oob handlers --- src/Components/Modules/Network.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Components/Modules/Network.cpp b/src/Components/Modules/Network.cpp index b30cc5c6..f434dc19 100644 --- a/src/Components/Modules/Network.cpp +++ b/src/Components/Modules/Network.cpp @@ -366,6 +366,11 @@ namespace Components // Handle client packets Utils::Hook(0x5AA703, Network::CL_HandleCommandStub, HOOK_JUMP).install()->quick(); + // Disable unused OOB packets handlers just to be sure + Utils::Hook::Set(0x5AA5B6, 0xEB); // CL_SteamServerAuth + Utils::Hook::Set(0x5AA69F, 0xEB); // echo + Utils::Hook::Set(0x5AAA82, 0xEB); // SP + Network::OnPacket("resolveAddress", [](const Address& address, [[maybe_unused]] const std::string& data) { Network::SendRaw(address, address.getString());