From 0dd54e606df9bbf70c88b618cce6172cf1db2428 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Fri, 10 Jun 2016 18:01:46 +0200 Subject: [PATCH] Multiple connections on hidden service fix - there was a bug which prevented multiple parallel connections on hidden service --- src/class_singleListener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class_singleListener.py b/src/class_singleListener.py index 68cc374b..0a093d0e 100644 --- a/src/class_singleListener.py +++ b/src/class_singleListener.py @@ -123,7 +123,7 @@ class singleListener(threading.Thread, StoppableThread): # share the same external IP. This is here to prevent # connection flooding. # permit repeated connections from Tor - if HOST in shared.connectedHostsList and (".onion" not in shared.config.get('bitmessagesettings', 'onionhostname') or shared.checkSocksIP(HOST)): + if HOST in shared.connectedHostsList and (".onion" not in shared.config.get('bitmessagesettings', 'onionhostname') or not shared.checkSocksIP(HOST)): socketObject.close() logger.info('We are already connected to ' + str(HOST) + '. Ignoring connection.') else: