mirror of
https://github.com/de2tla2f/pymaster.git
synced 2024-11-21 18:41:27 +00:00
Increase max servers per ip limit
This commit is contained in:
parent
c6e95fd7f2
commit
4fa50a3bd0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue