Fix tunnel debug print and use client id instead of uuid
parent
8ff19135d6
commit
bdda8da803
|
|
@ -185,8 +185,8 @@ void ProxyServer::establishTunnel(ProxyClient *firstClient, ProxyClient *secondC
|
|||
secondClient->setTunnelConnected(true);
|
||||
|
||||
qCDebug(dcProxyServer()) << tunnel;
|
||||
qCDebug(dcTunnel()) << "Tunnel established between" << firstClient->peerAddress().toString() << firstClient->uuid()
|
||||
<< "<-->" << secondClient->peerAddress().toString() << secondClient->uuid();
|
||||
qCDebug(dcTunnel()) << "Tunnel established between" << firstClient->peerAddress().toString() << firstClient->clientId()
|
||||
<< "<-->" << secondClient->peerAddress().toString() << secondClient->clientId();
|
||||
|
||||
m_totalTunnelCount += 1;
|
||||
saveStatistics();
|
||||
|
|
@ -249,8 +249,8 @@ void ProxyServer::onClientDisconnected(const QUuid &clientId)
|
|||
TunnelConnection tunnelConnection = m_tunnels.take(proxyClient->tunnelIdentifier());
|
||||
Engine::instance()->logEngine()->logTunnel(tunnelConnection);
|
||||
if (remoteClient) {
|
||||
qCDebug(dcTunnel()) << "Remove tunnel between" << proxyClient->peerAddress().toString() << proxyClient->uuid()
|
||||
<< "<-->" << remoteClient->peerAddress().toString() << remoteClient->uuid();
|
||||
qCDebug(dcTunnel()) << "Remove tunnel between" << proxyClient->peerAddress().toString() << proxyClient->clientId()
|
||||
<< "<-->" << remoteClient->peerAddress().toString() << remoteClient->clientId();
|
||||
remoteClient->killConnection("Tunnel client disconnected");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue