aboutsummaryrefslogtreecommitdiff
path: root/Emby.Common.Implementations/Networking/NetworkManager.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-03-29 15:24:04 -0400
committerGitHub <noreply@github.com>2017-03-29 15:24:04 -0400
commit4165bcb1940e843a0a7b0dfe708b27f182e58bf3 (patch)
treeaadb8cde45a519d23b86439c1b7c50a7d9ee8c90 /Emby.Common.Implementations/Networking/NetworkManager.cs
parent5340d530106a7fff12e12a5e7410137afa80aaac (diff)
parentdb75d02f9c99aad3d88c8beaac5eafaa8aba0e3f (diff)
Merge pull request #2557 from MediaBrowser/dev
Dev
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)