aboutsummaryrefslogtreecommitdiff
path: root/Emby.Common.Implementations/Networking/NetworkManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-29 15:16:43 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-29 15:16:43 -0400
commitf641c501a78d6270793ee9c9fa185517be6df008 (patch)
tree7c8d81191604d50b0ed71e07bbec0f6835d6250a /Emby.Common.Implementations/Networking/NetworkManager.cs
parentcb5c9333c5f7bf318976b3790e727127ca481354 (diff)
improve cancellation support of auto-organize
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)