Some trackers does not accept port 0, so we send port 1 as not-connectable
This commit is contained in:
parent
211d68f590
commit
2575476086
1 changed files with 2 additions and 0 deletions
|
@ -887,6 +887,8 @@ class Site(object):
|
|||
# Adding peers
|
||||
added = 0
|
||||
for peer in peers:
|
||||
if peer["port"] == 1: # Some trackers does not accept port 0, so we send port 1 as not-connectable
|
||||
peer["port"] = 0
|
||||
if not peer["port"]:
|
||||
continue # Dont add peers with port 0
|
||||
if self.addPeer(peer["addr"], peer["port"], source="tracker"):
|
||||
|
|
Loading…
Reference in a new issue