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:
parent
e033b72942
commit
807d461289
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue