From 59e1739136e9bffa61d4665cabf38d7851f341d8 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Tue, 28 Feb 2017 00:20:34 +0100 Subject: [PATCH] Revert duplicate IP treatment for bootstrap - bootstrap provider mode shouldn't accept multiple connections from a single IP after all, it creates problems --- src/class_singleListener.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/class_singleListener.py b/src/class_singleListener.py index 5fe202e9..5332929c 100644 --- a/src/class_singleListener.py +++ b/src/class_singleListener.py @@ -141,10 +141,6 @@ class singleListener(threading.Thread, StoppableThread): # permit repeated connections from Tor if HOST in shared.connectedHostsList and \ (".onion" not in BMConfigParser().get('bitmessagesettings', 'onionhostname') or not protocol.checkSocksIP(HOST)): - # bootstrap provider? Then accept, we'll most likely drop it a little bit later - if BMConfigParser().safeGetInt('bitmessagesettings', 'maxoutboundconnections') >= \ - BMConfigParser().safeGetInt('bitmessagesettings', 'maxtotalconnections', 200): - break socketObject.close() logger.info('We are already connected to ' + str(HOST) + '. Ignoring connection.') else: