From e80f4523526537d2dd927a05d9f0652ca09395a6 Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Sat, 11 Jun 2022 19:54:43 +0200 Subject: [PATCH] Fix empty IP on TCP connections Dangerous oversight! --- core/src/network/network_socket.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/network/network_socket.cpp b/core/src/network/network_socket.cpp index bf23521..fc4d875 100644 --- a/core/src/network/network_socket.cpp +++ b/core/src/network/network_socket.cpp @@ -26,6 +26,7 @@ NetworkSocket::NetworkSocket(QTcpSocket *f_socket, QObject *parent) : this, &NetworkSocket::readData); connect(m_client_socket.tcp, &QTcpSocket::disconnected, this, &NetworkSocket::clientDisconnected); + m_socket_ip = m_client_socket.tcp->peerAddress(); } NetworkSocket::NetworkSocket(QWebSocket *f_socket, QObject *parent) :