Show only active tunnel in monitor
This commit is contained in:
parent
aecf6da7e1
commit
f43dc9f78e
@ -205,6 +205,11 @@ QVariantMap TunnelProxyServer::currentStatistics()
|
||||
|
||||
QVariantList tunnelConnections;
|
||||
foreach (TunnelProxyServerConnection *serverConnection, m_tunnelProxyServerConnections) {
|
||||
|
||||
// Show only active clients
|
||||
if (serverConnection->clientConnections().isEmpty())
|
||||
continue;
|
||||
|
||||
QVariantMap serverMap;
|
||||
serverMap.insert("id", serverConnection->transportClient()->clientId().toString());
|
||||
serverMap.insert("address", serverConnection->transportClient()->peerAddress().toString());
|
||||
|
||||
@ -58,7 +58,7 @@ private:
|
||||
int m_terminalSizeX = 0;
|
||||
int m_terminalSizeY = 0;
|
||||
|
||||
View m_view = ViewClients;
|
||||
View m_view = ViewTunnelProxy;
|
||||
int m_tunnelProxyScollIndex = 0;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user