diff options
| author | Cody Robibero <cody@robibe.ro> | 2026-08-02 14:23:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-02 14:23:49 -0400 |
| commit | f865910a908ba36c5adfd7d6b394ec239077c31e (patch) | |
| tree | 0ea2102dc3764b92e75525634e3e954298a0ca8f /Emby.Server.Implementations | |
| parent | f2360c07a37b29b6fbfd53cda019c8c3235adfc0 (diff) | |
| parent | 0c7428f13675d1b63234cdc3ef5c748eb998e8e9 (diff) | |
Merge pull request #17298 from WizardOfYendor1/fix/livetv-published-stream-urls
Fix Live TV returning unreachable "server-local" streaming URLs to clients.
Diffstat (limited to 'Emby.Server.Implementations')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 0c1c7d3f5b..1a54565863 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -987,8 +987,9 @@ namespace Emby.Server.Implementations /// <inheritdoc/> public string GetLocalApiUrl(string hostname, string scheme = null, int? port = null) { - // If the smartAPI doesn't start with http then treat it as a host or ip. - if (hostname.StartsWith("http", StringComparison.OrdinalIgnoreCase)) + // If the smartAPI isn't already a complete URL then treat it as a host or ip. + if (hostname.StartsWith("http://", StringComparison.OrdinalIgnoreCase) + || hostname.StartsWith("https://", StringComparison.OrdinalIgnoreCase)) { return hostname.TrimEnd('/'); } |
