summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-server/Networking/TCPServer.hpp
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2018-12-30 15:00:51 +1300
committerboris <wzn@moneybot.cc>2018-12-30 15:00:51 +1300
commitd786e65a9a262638e74f6ebcf1b296917897ae49 (patch)
tree17199ab95db8a59abf4d3bf40543296d76e8659e /csgo-loader/csgo-server/Networking/TCPServer.hpp
parent0340821cc614fda2a94a96c255d16105dd2f6f9a (diff)
unban marcus or suffer my wrath
grr
Diffstat (limited to 'csgo-loader/csgo-server/Networking/TCPServer.hpp')
-rw-r--r--csgo-loader/csgo-server/Networking/TCPServer.hpp7
1 files changed, 4 insertions, 3 deletions
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.