aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Networking/BaseNetworkManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-12-25 22:36:38 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-12-25 22:36:38 -0500
commit40c46ca64995668a4becab4021613c56903649c4 (patch)
treea1b81b7435c2ea17e17e1c931fe5f1b6144b0d50 /MediaBrowser.Common.Implementations/Networking/BaseNetworkManager.cs
parent0ffc5ebace929a6b243219ab025e16d4bb0d2d67 (diff)
update dlna interface binding
Diffstat (limited to 'MediaBrowser.Common.Implementations/Networking/BaseNetworkManager.cs')
-rw-r--r--MediaBrowser.Common.Implementations/Networking/BaseNetworkManager.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/MediaBrowser.Common.Implementations/Networking/BaseNetworkManager.cs b/MediaBrowser.Common.Implementations/Networking/BaseNetworkManager.cs
index 7cf2b3838..789cde5fc 100644
--- a/MediaBrowser.Common.Implementations/Networking/BaseNetworkManager.cs
+++ b/MediaBrowser.Common.Implementations/Networking/BaseNetworkManager.cs
@@ -226,16 +226,13 @@ namespace MediaBrowser.Common.Implementations.Networking
try
{
- Logger.Debug("Found interface: {0}. Type: {1}. Status: {2}", network.Name, network.NetworkInterfaceType, network.OperationalStatus);
+ Logger.Debug("Querying interface: {0}. Type: {1}. Status: {2}", network.Name, network.NetworkInterfaceType, network.OperationalStatus);
var properties = network.GetIPProperties();
- var ipV4 = properties.GetIPv4Properties();
- if (null == ipV4)
- return new List<IPAddress>();
return properties.UnicastAddresses
- .Where(i => i.Address.AddressFamily == AddressFamily.InterNetwork && !IPAddress.IsLoopback(i.Address))
- .Select(i => i.Address)
+ .Select(i => i.Address)
+ .Where(i => i.AddressFamily == AddressFamily.InterNetwork && !IPAddress.IsLoopback(i))
.ToList();
}
catch (Exception ex)