Core/NetworkIO: Improve packet spam solution

Implement an improved packet Anti-DoS by counting how many times the same opcode has been sent in the last second and applying the policy specified in the configs if the amount of packets exceeds a reasonable amount.
Credits to the original author who decided to share this with TrinityCore team.
This commit is contained in:
jackpoz
2014-05-24 22:04:03 +02:00
parent f091713086
commit a4ba54fbdb
10 changed files with 256 additions and 21 deletions

View File

@@ -27,7 +27,7 @@
#include "AutoPtr.h"
#include "Player.h"
#include "WorldPacket.h"
#include "Opcodes.h"
#include "WorldSession.h"
namespace WeatherMgr
{