From bdda8da80325152e82dc142866b073b9ab4fbc7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 4 Jun 2019 19:50:28 +0200 Subject: [PATCH] Fix tunnel debug print and use client id instead of uuid --- libnymea-remoteproxy/proxyserver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libnymea-remoteproxy/proxyserver.cpp b/libnymea-remoteproxy/proxyserver.cpp index d4c61d1..c7f20c1 100644 --- a/libnymea-remoteproxy/proxyserver.cpp +++ b/libnymea-remoteproxy/proxyserver.cpp @@ -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"); } }