mirror of
https://github.com/SWG-Source/src.git
synced 2026-09-27 14:12:54 -04:00
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:
@@ -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
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user