1
0

qml: serverlistmodel use network is tor flag for server list filter

This commit is contained in:
Sander van Grieken
2023-01-13 12:34:31 +01:00
parent 762a9a9e7a
commit c94d3529f5

View File

@@ -115,11 +115,10 @@ class QEServerListModel(QAbstractListModel, QtEventListener):
all_servers = self.network.get_servers()
connected_hosts = set([iface.host for ifaces in chains.values() for iface in ifaces])
protocol = PREFERRED_NETWORK_PROTOCOL
use_tor = True
for _host, d in sorted(all_servers.items()):
if _host in connected_hosts:
continue
if _host.endswith('.onion') and not use_tor:
if _host.endswith('.onion') and not self.network.tor_proxy:
continue
port = d.get(protocol)
if port: