diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-03-29 15:24:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-29 15:24:04 -0400 |
| commit | 4165bcb1940e843a0a7b0dfe708b27f182e58bf3 (patch) | |
| tree | aadb8cde45a519d23b86439c1b7c50a7d9ee8c90 /Emby.Common.Implementations/Networking/NetworkManager.cs | |
| parent | 5340d530106a7fff12e12a5e7410137afa80aaac (diff) | |
| parent | db75d02f9c99aad3d88c8beaac5eafaa8aba0e3f (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.cs | 6 |
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) |
