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
|
@ -10,7 +10,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.6.0"
|
||||
self.rev = 3173
|
||||
self.rev = 3175
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
|
|
@ -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…
Reference in a new issue