mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 07:13:58 -05:00
Add server version to master api
Add IsEvadedOffense to EFPenalty Fix remote log reading in not Windows
This commit is contained in:
@ -279,11 +279,11 @@ namespace SharedLibraryCore
|
||||
return long.MinValue;
|
||||
}
|
||||
|
||||
public static int ConvertToIP(this string str)
|
||||
public static int? ConvertToIP(this string str)
|
||||
{
|
||||
System.Net.IPAddress.TryParse(str, out System.Net.IPAddress ip);
|
||||
|
||||
return ip == null ? int.MaxValue : BitConverter.ToInt32(ip.GetAddressBytes(), 0);
|
||||
return System.Net.IPAddress.TryParse(str, out System.Net.IPAddress ip) ?
|
||||
BitConverter.ToInt32(ip.GetAddressBytes(), 0) :
|
||||
new int?();
|
||||
}
|
||||
|
||||
public static string ConvertIPtoString(this int? ip)
|
||||
|
Reference in New Issue
Block a user