mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-25 15:08:37 +02:00
update multicast loopback handling
This commit is contained in:
parent
3ad2703c35
commit
9e661daf83
|
@ -110,18 +110,6 @@ namespace MediaBrowser.Dlna.Main
|
||||||
{
|
{
|
||||||
var options = _config.GetDlnaConfiguration();
|
var options = _config.GetDlnaConfiguration();
|
||||||
|
|
||||||
if (!options.EnableServer && !options.EnablePlayTo && !_config.Configuration.EnableUPnP)
|
|
||||||
{
|
|
||||||
if (_ssdpHandlerStarted)
|
|
||||||
{
|
|
||||||
// Sat/ip live tv depends on device discovery, as well as hd homerun detection
|
|
||||||
// In order to allow this to be disabled, we need a modular way of knowing if there are
|
|
||||||
// any parts of the system that are dependant on it
|
|
||||||
// DisposeSsdpHandler();
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_ssdpHandlerStarted)
|
if (!_ssdpHandlerStarted)
|
||||||
{
|
{
|
||||||
StartSsdpHandler();
|
StartSsdpHandler();
|
||||||
|
@ -231,7 +219,7 @@ namespace MediaBrowser.Dlna.Main
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var cacheLength = _config.GetDlnaConfiguration().BlastAliveMessageIntervalSeconds*2;
|
var cacheLength = _config.GetDlnaConfiguration().BlastAliveMessageIntervalSeconds * 2;
|
||||||
_Publisher.SupportPnpRootDevice = true;
|
_Publisher.SupportPnpRootDevice = true;
|
||||||
|
|
||||||
foreach (var address in await _appHost.GetLocalIpAddresses().ConfigureAwait(false))
|
foreach (var address in await _appHost.GetLocalIpAddresses().ConfigureAwait(false))
|
||||||
|
|
|
@ -346,7 +346,7 @@ namespace MediaBrowser.WebDashboard.Api
|
||||||
|
|
||||||
if (string.Equals(mode, "cordova", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(mode, "cordova", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
sb.Append("<meta http-equiv=\"Content-Security-Policy\" content=\"default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: file: filesystem:; connect-src ws: *\">");
|
sb.Append("<meta http-equiv=\"Content-Security-Policy\" content=\"default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: file: filesystem:;\">");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue