Fix empty IP on TCP connections
Dangerous oversight!
This commit is contained in:
parent
6d848682f6
commit
e80f452352
@ -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) :
|
||||
|
Loading…
Reference in New Issue
Block a user