Fix tunnel debug print and use client id instead of uuid

tcp-server
Simon Stürz 2019-06-04 19:50:28 +02:00 committed by Simon Stürz
parent 8ff19135d6
commit bdda8da803
1 changed files with 4 additions and 4 deletions

View File

@ -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");
}
}