Hacked client can't join full server anymore
Not sure how they can get around lidgren's checking, but this should do the trick
This commit is contained in:
@@ -81,6 +81,12 @@ namespace Barotrauma.Networking
|
||||
return;
|
||||
}
|
||||
|
||||
if (ConnectedClients.Count>=config.MaximumConnections)
|
||||
{
|
||||
inc.SenderConnection.Disconnect("Server full");
|
||||
return;
|
||||
}
|
||||
|
||||
DebugConsole.NewMessage("New player has joined the server", Color.White);
|
||||
|
||||
byte userID;
|
||||
|
||||
Reference in New Issue
Block a user