mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 07:13:58 -05:00
upgrade packages, and delete a few unneeded ones
fix search for client resulting in invalid GUID parse simplify output from dvar not being found make sure to prompt if not all servers could be reached
This commit is contained in:
@ -299,7 +299,7 @@ namespace SharedLibraryCore
|
||||
|
||||
public static int? ConvertToIP(this string str)
|
||||
{
|
||||
bool success = System.Net.IPAddress.TryParse(str, out System.Net.IPAddress ip);
|
||||
bool success = IPAddress.TryParse(str, out IPAddress ip);
|
||||
return success && ip.GetAddressBytes().Count(_byte => _byte == 0) != 4 ?
|
||||
(int?)BitConverter.ToInt32(ip.GetAddressBytes(), 0) :
|
||||
null;
|
||||
@ -307,7 +307,7 @@ namespace SharedLibraryCore
|
||||
|
||||
public static string ConvertIPtoString(this int? ip)
|
||||
{
|
||||
return !ip.HasValue ? "" : new System.Net.IPAddress(BitConverter.GetBytes(ip.Value)).ToString();
|
||||
return !ip.HasValue ? "" : new IPAddress(BitConverter.GetBytes(ip.Value)).ToString();
|
||||
}
|
||||
|
||||
public static string GetTimePassed(DateTime start)
|
||||
|
Reference in New Issue
Block a user