|
|
|
@ -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)
|
|
|
|
|