Improve remote source detection for HTTP streams in M3U tuner
HTTP/HTTPS streams are now considered remote unless explicitly localhost, rather than relying on local network detection. This ensures proper handling of streams that appear to be in the local network but should be treated as remote sources.
This commit is contained in:
@@ -153,7 +153,15 @@ namespace Jellyfin.LiveTv.TunerHosts
|
||||
var isRemote = true;
|
||||
if (Uri.TryCreate(path, UriKind.Absolute, out var uri))
|
||||
{
|
||||
isRemote = !_networkManager.IsInLocalNetwork(uri.Host);
|
||||
// For HTTP/HTTPS streams, always consider them remote unless explicitly localhost
|
||||
if (protocol == MediaProtocol.Http)
|
||||
{
|
||||
isRemote = !uri.IsLoopback;
|
||||
}
|
||||
else
|
||||
{
|
||||
isRemote = !_networkManager.IsInLocalNetwork(uri.Host);
|
||||
}
|
||||
}
|
||||
|
||||
var httpHeaders = new Dictionary<string, string>();
|
||||
|
||||
Reference in New Issue
Block a user