Add Connection.EndPoint property.

This commit is contained in:
Paul Chote
2021-05-23 15:01:30 +01:00
committed by reaperrr
parent 7e79e69eae
commit 7c02b4d264
3 changed files with 25 additions and 27 deletions

View File

@@ -144,7 +144,7 @@ namespace OpenRA.Mods.Common.Server
}
client.State = state;
Log.Write("server", "Player @{0} is {1}", conn.Socket.RemoteEndPoint, client.State);
Log.Write("server", "Player @{0} is {1}", conn.EndPoint, client.State);
server.SyncLobbyClients();
CheckAutoStart(server);
@@ -759,7 +759,7 @@ namespace OpenRA.Mods.Common.Server
if (sanitizedName == client.Name)
return true;
Log.Write("server", "Player@{0} is now known as {1}.", conn.Socket.RemoteEndPoint, sanitizedName);
Log.Write("server", "Player@{0} is now known as {1}.", conn.EndPoint, sanitizedName);
server.SendMessage($"{client.Name} is now known as {sanitizedName}.");
client.Name = sanitizedName;
server.SyncLobbyClients();