diff options
author | jackpoz <giacomopoz@gmail.com> | 2014-05-24 22:04:03 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2014-05-24 22:34:06 +0200 |
commit | a4ba54fbdbb690377c873ea34f1d3541002872b5 (patch) | |
tree | b23da22c6e76dc2aebeb2b7c65d2e18bd1fcbb00 /src/server/game/Weather/WeatherMgr.cpp | |
parent | f091713086eab1ef928bc2f79eb0dc3b0bc4ce2f (diff) |
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.
Diffstat (limited to 'src/server/game/Weather/WeatherMgr.cpp')
-rw-r--r-- | src/server/game/Weather/WeatherMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Weather/WeatherMgr.cpp b/src/server/game/Weather/WeatherMgr.cpp index 59dc591ccd0..5cf5cde75fd 100644 --- a/src/server/game/Weather/WeatherMgr.cpp +++ b/src/server/game/Weather/WeatherMgr.cpp @@ -27,7 +27,7 @@ #include "AutoPtr.h" #include "Player.h" #include "WorldPacket.h" -#include "Opcodes.h" +#include "WorldSession.h" namespace WeatherMgr { |