Fix empty IP on TCP connections

Dangerous oversight!
This commit is contained in:
Salanto 2022-06-11 19:54:43 +02:00 committed by Rosemary Witchaven
parent 6d848682f6
commit e80f452352

View File

@ -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) :