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.
This commit is contained in:
tangdou1 2018-09-21 14:05:27 +08:00 committed by GitHub
parent e033b72942
commit 807d461289
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: