diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-10-05 14:12:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-05 14:12:16 -0400 |
| commit | 8eeca98fef6dd314764882b0ea1121361ec11e46 (patch) | |
| tree | b6e5d8074e9d4326729f13ec5562277cf2845ea4 /Emby.Server.Implementations/Networking/NetworkManager.cs | |
| parent | 185fa7f5e76a9971e34c35783698d37902ed14cb (diff) | |
| parent | db01b79901e503350f8359cab8b1eeae5ea30735 (diff) | |
Merge pull request #2943 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Networking/NetworkManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Networking/NetworkManager.cs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Emby.Server.Implementations/Networking/NetworkManager.cs b/Emby.Server.Implementations/Networking/NetworkManager.cs index b47c058df..5fb8f7fc9 100644 --- a/Emby.Server.Implementations/Networking/NetworkManager.cs +++ b/Emby.Server.Implementations/Networking/NetworkManager.cs @@ -29,7 +29,7 @@ namespace Emby.Server.Implementations.Networking public List<IpAddressInfo> GetLocalIpAddresses() { - const int cacheMinutes = 5; + const int cacheMinutes = 10; lock (_localIpAddressSyncLock) { @@ -198,12 +198,6 @@ namespace Emby.Server.Implementations.Networking return Dns.GetHostAddressesAsync(hostName); } - private readonly List<NetworkInterfaceType> _validNetworkInterfaceTypes = new List<NetworkInterfaceType> - { - NetworkInterfaceType.Ethernet, - NetworkInterfaceType.Wireless80211 - }; - private List<IPAddress> GetIPsDefault() { NetworkInterface[] interfaces; @@ -227,7 +221,8 @@ namespace Emby.Server.Implementations.Networking try { - Logger.Debug("Querying interface: {0}. Type: {1}. Status: {2}", network.Name, network.NetworkInterfaceType, network.OperationalStatus); + // suppress logging because it might be causing nas device wake up + //Logger.Debug("Querying interface: {0}. Type: {1}. Status: {2}", network.Name, network.NetworkInterfaceType, network.OperationalStatus); var ipProperties = network.GetIPProperties(); |
