mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Make sure Jellyfin listens on localhost no matter what
This is needed by LiveTV
This commit is contained in:
parent
e85f9f5613
commit
626d4dab10
@ -267,9 +267,15 @@ namespace Jellyfin.Server
|
|||||||
.LocalNetworkAddresses
|
.LocalNetworkAddresses
|
||||||
.Select(appHost.NormalizeConfiguredLocalAddress)
|
.Select(appHost.NormalizeConfiguredLocalAddress)
|
||||||
.Where(i => i != null)
|
.Where(i => i != null)
|
||||||
.ToList();
|
.ToHashSet();
|
||||||
if (addresses.Any())
|
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)
|
foreach (var address in addresses)
|
||||||
{
|
{
|
||||||
_logger.LogInformation("Kestrel listening on {IpAddress}", address);
|
_logger.LogInformation("Kestrel listening on {IpAddress}", address);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user