13
0
geforkt von Mirrors/Paper

Raise packet tolerance in spam threshold patch

Fixes GH-462
Dieser Commit ist enthalten in:
Zach Brown 2016-11-04 22:31:37 -05:00
Ursprung 1d9fc7dfc2
Commit 4916cf72cb

Datei anzeigen

@ -34,7 +34,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
private boolean checkLimit(long timestamp) {
- if (lastLimitedPacket != -1 && timestamp - lastLimitedPacket < 30 && limitedPackets++ >= 4) {
+ if (lastLimitedPacket != -1 && timestamp - lastLimitedPacket < THRESHOLD && limitedPackets++ >= 4) { // Paper
+ if (lastLimitedPacket != -1 && timestamp - lastLimitedPacket < THRESHOLD && limitedPackets++ >= 8) { // Paper - Use threshold, raise packet limit to 8
return false;
}