fix aforementioned bugs/mistakes/typos

probably need to add the SOE logging class to this one, or give it a log
output location or something at some point
This commit is contained in:
DarthArgus
2016-09-26 06:27:54 +00:00
parent e395177e8f
commit 5e890f9c07
3 changed files with 5 additions and 5 deletions
@@ -147,11 +147,11 @@ LoginServer::LoginServer() :
setup.compress = ConfigLoginServer::getCompressClientNetworkTraffic();
setup.useTcp = false;
clientService = new Service(ConnectionAllocator<ClientConnection>(), setup, ConfigLoginServer::getMaxConnectionsPerIP());
clientService = new Service(ConnectionAllocator<ClientConnection>(), setup);
setup.compress = false;
setup.port = ConfigLoginServer::getPingServicePort();
pingService = new Service(ConnectionAllocator<PingConnection>(), setup, ConfigLoginServer::getMaxConnectionsPerIP());
pingService = new Service(ConnectionAllocator<PingConnection>(), setup);
setup.useTcp = true;
if (ConfigLoginServer::getDevelopmentMode())
@@ -92,7 +92,7 @@ m_tcpServer(0)
p.icmpErrorRetryPeriod = setup.icmpErrorRetryPeriod;
p.maxDataHoldSize = setup.maxDataHoldSize;
p.allowPortRemapping = setup.allowPortRemapping;
p.maxConnectionsPerIP = setup.maxconnectionsPerIP;
p.maxConnectionsPerIP = setup.maxConnectionsPerIP;
if (realAddress.length() > 0)
{
@@ -165,7 +165,7 @@ m_tcpServer(0)
m_maxConnections = setup.maxConnections;
newService(this);
`->connect(*this, &Service::onConnectionClosed);
m_callback->connect(*this, &Service::onConnectionClosed);
}
//-----------------------------------------------------------------------
+1 -1
View File
@@ -1014,7 +1014,7 @@ void UdpManager::ProcessRawPacket(const PacketHistoryEntry *e)
if (clientConnections >= mParams.maxConnectionsPerIP)
{
printf("Possible DoS attempt? Client %i attempted more connections than the limit (%i). Dropping!", e->mIp, mParams.maxConnectionsPerIP);
printf("Possible DoS attempt? Client %i attempted more connections than the limit (%i). Dropping!\n", e->mIp.GetAddress(), mParams.maxConnectionsPerIP);
return;
}
}