Anonymise client IPs and allow server operators to disable sharing.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user