X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=a2b7283e2b51fe43fed72774efcb39ff6827fa77;hp=e63e9671bb9e9181190f08869c5982f27bf32b1c;hb=71253052c7152711f7f1b96f274d6f06d97f2cdb;hpb=926e41c2d511fd0ac68b50f6d109243d6457a999 diff --git a/src/core/core.cpp b/src/core/core.cpp index e63e9671..a2b7283e 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -730,7 +730,7 @@ void Core::incomingConnection() connect(handler, &AuthHandler::socketError, this, &Core::socketError); connect(handler, &CoreAuthHandler::handshakeComplete, this, &Core::setupClientSession); - qInfo() << qPrintable(tr("Client connected from")) << qPrintable(socket->peerAddress().toString()); + qInfo() << qPrintable(tr("Client connected from")) << qPrintable(handler->hostAddress().toString()); if (!_configured) { stopListening(tr("Closing server for basic setup.")); @@ -744,7 +744,7 @@ void Core::clientDisconnected() auto* handler = qobject_cast(sender()); Q_ASSERT(handler); - qInfo() << qPrintable(tr("Non-authed client disconnected:")) << qPrintable(handler->socket()->peerAddress().toString()); + qInfo() << qPrintable(tr("Non-authed client disconnected:")) << qPrintable(handler->hostAddress().toString()); _connectingClients.remove(handler); handler->deleteLater();