diff options
| author | Andrew Rabert <6550543+nvllsvm@users.noreply.github.com> | 2019-02-02 14:19:54 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-02 14:19:54 -0500 |
| commit | 20dac6d6b8d44e8789f6d816181f69c6fc1ec02b (patch) | |
| tree | bb58c999a2775186c4c3f4768319996edcae3fc5 /Emby.Server.Implementations/Networking/NetworkManager.cs | |
| parent | 1d94607a306521860df44982d6bfeb1a139def52 (diff) | |
| parent | 1385d89df6d6af178dcfdfa1dee6346c6efcad2a (diff) | |
Merge pull request #794 from Bond-009/lesslinq
Remove MoreLINQ
Diffstat (limited to 'Emby.Server.Implementations/Networking/NetworkManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Networking/NetworkManager.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Networking/NetworkManager.cs b/Emby.Server.Implementations/Networking/NetworkManager.cs index f4b9f84dc..aa884664f 100644 --- a/Emby.Server.Implementations/Networking/NetworkManager.cs +++ b/Emby.Server.Implementations/Networking/NetworkManager.cs @@ -111,7 +111,8 @@ namespace Emby.Server.Implementations.Networking .OrderBy(i => i.AddressFamily == AddressFamily.InterNetwork ? 0 : 1) .ThenBy(i => listClone.IndexOf(i)) .Where(FilterIpAddress) - .DistinctBy(i => i.ToString()) + .GroupBy(i => i.ToString()) + .Select(x => x.First()) .ToList(); } @@ -429,7 +430,8 @@ namespace Emby.Server.Implementations.Networking return new List<IPAddress>(); } - }).DistinctBy(i => i.ToString()) + }).GroupBy(i => i.ToString()) + .Select(x => x.First()) .ToList(); } |
