aboutsummaryrefslogtreecommitdiff
path: root/Emby.Common.Implementations/Networking/NetworkManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Common.Implementations/Networking/NetworkManager.cs')
-rw-r--r--Emby.Common.Implementations/Networking/NetworkManager.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/Emby.Common.Implementations/Networking/NetworkManager.cs b/Emby.Common.Implementations/Networking/NetworkManager.cs
index 2b84b2aa1..2f218656c 100644
--- a/Emby.Common.Implementations/Networking/NetworkManager.cs
+++ b/Emby.Common.Implementations/Networking/NetworkManager.cs
@@ -500,11 +500,7 @@ namespace Emby.Common.Implementations.Networking
{
return IpAddressInfo.IPv6Loopback;
}
- return new IpAddressInfo
- {
- Address = address.ToString(),
- AddressFamily = address.AddressFamily == AddressFamily.InterNetworkV6 ? IpAddressFamily.InterNetworkV6 : IpAddressFamily.InterNetwork
- };
+ return new IpAddressInfo(address.ToString(), address.AddressFamily == AddressFamily.InterNetworkV6 ? IpAddressFamily.InterNetworkV6 : IpAddressFamily.InterNetwork);
}
public async Task<IpAddressInfo[]> GetHostAddressesAsync(string host)