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);
|
secondClient->setTunnelConnected(true);
|
||||||
|
|
||||||
qCDebug(dcProxyServer()) << tunnel;
|
qCDebug(dcProxyServer()) << tunnel;
|
||||||
qCDebug(dcTunnel()) << "Tunnel established between" << firstClient->peerAddress().toString() << firstClient->uuid()
|
qCDebug(dcTunnel()) << "Tunnel established between" << firstClient->peerAddress().toString() << firstClient->clientId()
|
||||||
<< "<-->" << secondClient->peerAddress().toString() << secondClient->uuid();
|
<< "<-->" << secondClient->peerAddress().toString() << secondClient->clientId();
|
||||||
|
|
||||||
m_totalTunnelCount += 1;
|
m_totalTunnelCount += 1;
|
||||||
saveStatistics();
|
saveStatistics();
|
||||||
|
|
@ -249,8 +249,8 @@ void ProxyServer::onClientDisconnected(const QUuid &clientId)
|
||||||
TunnelConnection tunnelConnection = m_tunnels.take(proxyClient->tunnelIdentifier());
|
TunnelConnection tunnelConnection = m_tunnels.take(proxyClient->tunnelIdentifier());
|
||||||
Engine::instance()->logEngine()->logTunnel(tunnelConnection);
|
Engine::instance()->logEngine()->logTunnel(tunnelConnection);
|
||||||
if (remoteClient) {
|
if (remoteClient) {
|
||||||
qCDebug(dcTunnel()) << "Remove tunnel between" << proxyClient->peerAddress().toString() << proxyClient->uuid()
|
qCDebug(dcTunnel()) << "Remove tunnel between" << proxyClient->peerAddress().toString() << proxyClient->clientId()
|
||||||
<< "<-->" << remoteClient->peerAddress().toString() << remoteClient->uuid();
|
<< "<-->" << remoteClient->peerAddress().toString() << remoteClient->clientId();
|
||||||
remoteClient->killConnection("Tunnel client disconnected");
|
remoteClient->killConnection("Tunnel client disconnected");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue