mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 09:04:42 +01:00
update portable projects
This commit is contained in:
@@ -64,7 +64,7 @@ namespace Emby.Server.Implementations.Connect
|
||||
validIpAddress = await GetIpAddress(ipLookupUrl).ConfigureAwait(false);
|
||||
|
||||
// Try to find the ipv4 address, if present
|
||||
if (!validIpAddress.IsIpv6)
|
||||
if (validIpAddress.AddressFamily != IpAddressFamily.InterNetworkV6)
|
||||
{
|
||||
break;
|
||||
}
|
||||
@@ -77,9 +77,9 @@ namespace Emby.Server.Implementations.Connect
|
||||
_logger.ErrorException("Error getting connection info", ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// If this produced an ipv6 address, try again
|
||||
if (validIpAddress != null && validIpAddress.IsIpv6)
|
||||
if (validIpAddress != null && validIpAddress.AddressFamily == IpAddressFamily.InterNetworkV6)
|
||||
{
|
||||
foreach (var ipLookupUrl in _ipLookups)
|
||||
{
|
||||
@@ -88,7 +88,7 @@ namespace Emby.Server.Implementations.Connect
|
||||
var newAddress = await GetIpAddress(ipLookupUrl, true).ConfigureAwait(false);
|
||||
|
||||
// Try to find the ipv4 address, if present
|
||||
if (!newAddress.IsIpv6)
|
||||
if (newAddress.AddressFamily != IpAddressFamily.InterNetworkV6)
|
||||
{
|
||||
validIpAddress = newAddress;
|
||||
break;
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace Emby.Server.Implementations.Connect
|
||||
|
||||
if (string.IsNullOrWhiteSpace(address) && DiscoveredWanIpAddress != null)
|
||||
{
|
||||
if (DiscoveredWanIpAddress.IsIpv6)
|
||||
if (DiscoveredWanIpAddress.AddressFamily == IpAddressFamily.InterNetworkV6)
|
||||
{
|
||||
address = "[" + DiscoveredWanIpAddress + "]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user