ZeroTier helper

This commit is contained in:
Sardelka
2022-08-12 18:02:43 +08:00
parent 29202906e1
commit 339f817c7e
3 changed files with 152 additions and 2 deletions

View File

@ -425,5 +425,15 @@ namespace RageCoop.Core
{
return BitConverter.ToString(data).Replace("-", String.Empty);
}
/// <summary>
/// Convert a string to IP address
/// </summary>
/// <param name="ip"></param>
/// <returns></returns>
public static IPAddress ToIP(this string ip)
{
return IPAddress.Parse(ip);
}
}
}