use "unknown" ip as bot indicator

This commit is contained in:
RaidMax 2022-06-28 09:15:37 -05:00
parent 2daa4991d1
commit 5a2ee36df9

View File

@ -100,7 +100,10 @@ namespace SharedLibraryCore.Database.Models
[NotMapped] public int Score { get; set; } [NotMapped] public int Score { get; set; }
[NotMapped] public bool IsBot => NetworkId == Name.GenerateGuidFromString() || IPAddressString == System.Net.IPAddress.Broadcast.ToString(); [NotMapped]
public bool IsBot => NetworkId == Name.GenerateGuidFromString() ||
IPAddressString == System.Net.IPAddress.Broadcast.ToString() ||
IPAddressString == "unknown";
[NotMapped] public bool IsZombieClient => IsBot && Name == "Zombie"; [NotMapped] public bool IsZombieClient => IsBot && Name == "Zombie";