Browse Source

Increase max servers per ip limit

pull/4/head
Alibek Omarov 3 years ago
parent
commit
4fa50a3bd0
  1. 3
      pymaster.py

3
pymaster.py

@ -13,6 +13,7 @@ from server_entry import ServerEntry
from protocol import MasterProtocol from protocol import MasterProtocol
LOG_FILENAME = 'pymaster.log' LOG_FILENAME = 'pymaster.log'
MAX_SERVERS_FOR_IP = 14
def logPrint( msg ): def logPrint( msg ):
logging.debug( msg ) logging.debug( msg )
@ -140,7 +141,7 @@ class PyMaster:
self.serverList.remove(i) self.serverList.remove(i)
else: else:
count += 1 count += 1
if( count > 7 ): if( count > MAX_SERVERS_FOR_IP ):
return return
# Generate a 32 bit challenge number # Generate a 32 bit challenge number

Loading…
Cancel
Save