diff options
author | jackpoz <giacomopoz@gmail.com> | 2014-05-25 15:26:49 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2014-05-25 15:26:49 +0200 |
commit | 2f0f8f8018f4786b9e3e3eab9a9ec17c02668923 (patch) | |
tree | 8fd8f38a16ce9e5a8b7e2d32ed2d804621489b06 | |
parent | 5e66253de230ef3f9236ba71e94296d60b05aa3f (diff) |
Core/NetworkIO: Adjust packet throttling values
Adjust packet throttling values to avoid false positive. In case you are experiencing random kicks change the PacketSpoof.Policy setting in worldserver configs and report which packets are triggering the anti-dos system.
-rw-r--r-- | src/server/game/Server/WorldSession.cpp | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/src/server/game/Server/WorldSession.cpp b/src/server/game/Server/WorldSession.cpp index 850aecbf164..81d33d30a35 100644 --- a/src/server/game/Server/WorldSession.cpp +++ b/src/server/game/Server/WorldSession.cpp @@ -1340,6 +1340,17 @@ uint32 WorldSession::DosProtection::GetMaxPacketCounterAllowed(uint16 opcode) co } case CMSG_MESSAGECHAT: + { + maxPacketCounterAllowed = 50; + break; + } + + case CMSG_CONTACT_LIST: + { + maxPacketCounterAllowed = 10; + break; + } + case CMSG_WHO: case CMSG_GAMEOBJ_USE: case CMSG_GAMEOBJ_REPORT_USE: @@ -1352,7 +1363,6 @@ uint32 WorldSession::DosProtection::GetMaxPacketCounterAllowed(uint16 opcode) co case CMSG_REQUEST_VEHICLE_NEXT_SEAT: case CMSG_REQUEST_VEHICLE_SWITCH_SEAT: case CMSG_TOGGLE_PVP: - case CMSG_CONTACT_LIST: case CMSG_ADD_FRIEND: case CMSG_DEL_FRIEND: case CMSG_SET_CONTACT_NOTES: @@ -1479,9 +1489,21 @@ uint32 WorldSession::DosProtection::GetMaxPacketCounterAllowed(uint16 opcode) co break; } + case CMSG_SET_ACTION_BUTTON: + { + maxPacketCounterAllowed = MAX_ACTION_BUTTONS; + break; + } + + case CMSG_ITEM_REFUND_INFO: + { + maxPacketCounterAllowed = PLAYER_SLOTS_COUNT; + break; + } + default: { - maxPacketCounterAllowed = 30; + maxPacketCounterAllowed = 100; break; } } |