filter old servers

This commit is contained in:
ThomasV 2012-06-23 12:02:44 +02:00
parent cfae601d4b
commit f08122dc6c
1 changed files with 4 additions and 1 deletions

View File

@ -340,11 +340,14 @@ class WalletSynchronizer(threading.Thread):
s = []
host = item[1]
ports = []
version = None
if len(item)>2:
for v in item[2]:
if re.match("[th]\d+",v):
ports.append((v[0],v[1:]))
if ports:
if re.match("v(.?)+",v):
version = v[1:]
if ports and version:
servers.append( (host, ports) )
self.interface.servers = servers