From 4fa50a3bd0da1d4a2f0bb6cef8f9406256076fe6 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 12 Oct 2021 12:27:05 +0300 Subject: [PATCH] Increase max servers per ip limit --- pymaster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymaster.py b/pymaster.py index f9a68ad..04fc018 100755 --- a/pymaster.py +++ b/pymaster.py @@ -13,6 +13,7 @@ from server_entry import ServerEntry from protocol import MasterProtocol LOG_FILENAME = 'pymaster.log' +MAX_SERVERS_FOR_IP = 14 def logPrint( msg ): logging.debug( msg ) @@ -140,7 +141,7 @@ class PyMaster: self.serverList.remove(i) else: count += 1 - if( count > 7 ): + if( count > MAX_SERVERS_FOR_IP ): return # Generate a 32 bit challenge number