Anonymise client IPs and allow server operators to disable sharing.

This commit is contained in:
Paul Chote
2020-01-12 10:52:34 +00:00
committed by abcdefg30
parent 422cc2b0d0
commit 38cb818469
6 changed files with 31 additions and 4 deletions

View File

@@ -329,10 +329,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic
adminLabel.Bounds.Y += locationLabel.Bounds.Height;
}
if (client.IpAddress != null)
if (client.AnonymizedIPAddress != null)
{
ipLabel.IsVisible = () => true;
ipLabel.GetText = () => client.IpAddress;
ipLabel.GetText = () => client.AnonymizedIPAddress;
widget.Bounds.Height += ipLabel.Bounds.Height;
adminLabel.Bounds.Y += locationLabel.Bounds.Height;
}