Rev3175, Make getConnectablePeers return not-connected peers by default
This commit is contained in:
parent
c9c1d10ee4
commit
7ee5cbe473
2 changed files with 2 additions and 2 deletions
|
@ -1007,7 +1007,7 @@ class Site(object):
|
|||
if len(found) >= need_num:
|
||||
break # Found requested number of peers
|
||||
|
||||
if need_num > 5 and need_num < 100 and len(found) < need_num: # Return not that good peers
|
||||
if len(found) < need_num: # Return not that good peers
|
||||
found = [peer for peer in peers if not peer.key.endswith(":0") and peer.key not in ignore][0:need_num - len(found)]
|
||||
|
||||
return found
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue