示例#1
0
 /// <summary>
 /// Get public IPv6 Address as System.Net.IPAddress
 /// </summary>
 /// <param name="useHttps">Using SSL path of ipify.org (HTTPS)</param>
 /// <returns>System.Net.IPAddress</returns>
 public static IPAddress GetPublicIPv6Address(bool useHttps = true)
 {
     return(IPAddress.Parse(Download.IpifiyString(useHttps ? ipifyAdressv6Secure : ipifyAdressv6)));
 }