use "unknown" ip as bot indicator
This commit is contained in:
parent
2daa4991d1
commit
5a2ee36df9
@ -100,7 +100,10 @@ namespace SharedLibraryCore.Database.Models
|
||||
|
||||
[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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user