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

@@ -348,6 +348,7 @@ namespace OpenRA.Server
{
Name = OpenRA.Settings.SanitizedPlayerName(handshake.Client.Name),
IpAddress = ipAddress.ToString(),
AnonymizedIPAddress = Settings.ShareAnonymizedIPs ? Session.AnonymizeIP(ipAddress) : null,
Location = GeoIP.LookupCountry(ipAddress),
Index = newConn.PlayerIndex,
PreferredColor = handshake.Client.PreferredColor,