From 49aa6d71f2756fb2da7890a42d7815a0c63a5cd6 Mon Sep 17 00:00:00 2001 From: Jgunishka <53265225+Jgunishka@users.noreply.github.com> Date: Wed, 21 Aug 2019 21:20:40 +0300 Subject: [PATCH] Update ConnectController.java --- .../controller/connectcontroller/ConnectController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/emulinker/kaillera/controller/connectcontroller/ConnectController.java b/src/org/emulinker/kaillera/controller/connectcontroller/ConnectController.java index 671baef..c422434 100644 --- a/src/org/emulinker/kaillera/controller/connectcontroller/ConnectController.java +++ b/src/org/emulinker/kaillera/controller/connectcontroller/ConnectController.java @@ -219,11 +219,12 @@ public class ConnectController extends UDPServer else { int privatePort = -1; + int access = accessManager.getAccess(fromSocketAddress.getAddress()); try { //SF MOD - Hammer Protection - if(connectedCount > 0){ + if(access < AccessManager.ACCESS_ADMIN && connectedCount > 0){ if(lastAddress.equals(fromSocketAddress.getAddress().getHostAddress())){ lastAddressCount++; if(lastAddressCount >= 4){