1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

use bot ip address when determining if client is bot

This commit is contained in:
RaidMax
2022-06-12 10:09:56 -05:00
parent 5966541039
commit 6d9cc9b19f
2 changed files with 9 additions and 1 deletions

View File

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