Merge pull request #2798 from JustAMan/fix-livetv-again

Make localhost LiveTV restreams always use plain HTTP port
This commit is contained in:
Joshua M. Boniface
2020-04-26 15:13:27 -04:00
committed by GitHub
6 changed files with 27 additions and 16 deletions

View File

@@ -265,9 +265,15 @@ namespace Jellyfin.Server
.LocalNetworkAddresses
.Select(appHost.NormalizeConfiguredLocalAddress)
.Where(i => i != null)
.ToList();
if (addresses.Any())
.ToHashSet();
if (addresses.Any() && !addresses.Contains(IPAddress.Any))
{
if (!addresses.Contains(IPAddress.Loopback))
{
// we must listen on loopback for LiveTV to function regardless of the settings
addresses.Add(IPAddress.Loopback);
}
foreach (var address in addresses)
{
_logger.LogInformation("Kestrel listening on {IpAddress}", address);