Update DlnaEntryPoint.cs
This commit is contained in:
parent
fb1d452b59
commit
28634d3b36
|
@ -259,15 +259,16 @@ namespace Emby.Dlna.Main
|
|||
|
||||
private void RegisterServerEndpoints()
|
||||
{
|
||||
var bindAddresses = _networkManager.GetInternalBindAddresses()
|
||||
.Where(i => i.AddressFamily == AddressFamily.InterNetwork || (i.AddressFamily == AddressFamily.InterNetworkV6 && i.Address.ScopeId != 0));
|
||||
|
||||
var udn = CreateUuid(_appHost.SystemId);
|
||||
|
||||
if (!bindAddresses.Any())
|
||||
var ba = new NetCollection(
|
||||
_networkManager.GetInternalBindAddresses()
|
||||
.Where(i => i.AddressFamily == AddressFamily.InterNetwork || (i.AddressFamily == AddressFamily.InterNetworkV6 && i.Address.ScopeId != 0)));
|
||||
|
||||
if (ba.Count == 0)
|
||||
{
|
||||
// No interfaces returned, so use loopback.
|
||||
bindAddresses = _networkManager.GetLoopbacks();
|
||||
ba = _networkManager.GetLoopbacks();
|
||||
}
|
||||
|
||||
foreach (var addr in bindAddresses)
|
||||
|
|
Loading…
Reference in New Issue
Block a user