Merge pull request #2740 from JustAMan/fix-livetv

Fix GetLocalApiUrl for cases with https enabled
pull/2742/head
Bond-009 5 years ago committed by GitHub
commit b3283e37f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1509,18 +1509,10 @@ namespace Emby.Server.Implementations
public string GetLocalApiUrl(ReadOnlySpan<char> host)
{
var url = new StringBuilder(64);
if (EnableHttps)
{
url.Append("https://");
}
else
{
url.Append("http://");
}
url.Append(host)
url.Append(EnableHttps ? "https://" : "http://")
.Append(host)
.Append(':')
.Append(HttpPort);
.Append(EnableHttps ? HttpsPort : HttpPort);
string baseUrl = ServerConfigurationManager.Configuration.BaseUrl;
if (baseUrl.Length != 0)

Loading…
Cancel
Save