From d786e65a9a262638e74f6ebcf1b296917897ae49 Mon Sep 17 00:00:00 2001 From: boris Date: Sun, 30 Dec 2018 15:00:51 +1300 Subject: unban marcus or suffer my wrath grr --- csgo-loader/csgo-server/Networking/TCPServer.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'csgo-loader/csgo-server/Networking/TCPServer.hpp') diff --git a/csgo-loader/csgo-server/Networking/TCPServer.hpp b/csgo-loader/csgo-server/Networking/TCPServer.hpp index 31beec8..a29a796 100644 --- a/csgo-loader/csgo-server/Networking/TCPServer.hpp +++ b/csgo-loader/csgo-server/Networking/TCPServer.hpp @@ -23,13 +23,14 @@ namespace Networking { SOCKET m_Socket; Wrapper::Encryption m_Encryption; - const char *m_IpAddress; + char m_IpAddress[32]; public: // Initialiser for TCPConnection class. TCPConnection(SOCKET Connection, const char *IpAddress, Wrapper::Encryption &RSA) : - m_Encryption(RSA), m_Socket(Connection), m_IpAddress(IpAddress) + m_Encryption(RSA), m_Socket(Connection) { - printf("[ => ] connected\n"); + strcpy_s<32>(m_IpAddress, IpAddress); + printf("[ => ] %s connected!\n", m_IpAddress); } // Release the connection once it goes out of scope. -- cgit v1.2.3