From 807d4612895161a7b8307e9cfec3d6046ad627ee Mon Sep 17 00:00:00 2001 From: tangdou1 <35254744+tangdou1@users.noreply.github.com> Date: Fri, 21 Sep 2018 14:05:27 +0800 Subject: [PATCH] Fix bootstrapper is blocked by itself Make the bootstrapper server can add its own ip and port in its own bootstrapper.db as a peer. --- src/Connection/ConnectionServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connection/ConnectionServer.py b/src/Connection/ConnectionServer.py index 2a60af64..85cb308e 100644 --- a/src/Connection/ConnectionServer.py +++ b/src/Connection/ConnectionServer.py @@ -162,7 +162,7 @@ class ConnectionServer(object): if port == 0: raise Exception("This peer is not connectable") - if (ip, port) in self.peer_blacklist: + if (ip, port) in self.peer_blacklist and not is_tracker_connection: raise Exception("This peer is blacklisted") try: