The Free Software Media System - Server Backend & API
Remove CanConnectWithHttps Property
Mark Monteirofee76097f44d
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 6a324e0904..a39baa84ab 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -1413,7 +1413,7 @@ namespace Emby.Server.ImplementationsInternalMetadataPath = ApplicationPaths.InternalMetadataPath,CachePath = ApplicationPaths.CachePath,HttpServerPortNumber = HttpPort,- SupportsHttps = CanConnectWithHttps,+ SupportsHttps = ListenWithHttps || ServerConfigurationManager.Configuration.IsBehindProxy,HttpsPortNumber = HttpsPort,OperatingSystem = OperatingSystem.Id.ToString(),OperatingSystemDisplayName = OperatingSystem.Name,@@ -1455,8 +1455,6 @@ namespace Emby.Server.Implementationspublic bool ListenWithHttps => Certificate != null && ServerConfigurationManager.Configuration.EnableHttps;/// <inheritdoc/>- public bool CanConnectWithHttps => ListenWithHttps || ServerConfigurationManager.Configuration.IsBehindProxy;-public async Task<string> GetLocalApiUrl(CancellationToken cancellationToken){trydiff --git a/MediaBrowser.Controller/IServerApplicationHost.cs b/MediaBrowser.Controller/IServerApplicationHost.csindex 7742279f7a..d999f76dbf 100644--- a/MediaBrowser.Controller/IServerApplicationHost.cs+++ b/MediaBrowser.Controller/IServerApplicationHost.cs@@ -43,12 +43,6 @@ namespace MediaBrowser.Controller/// </summary>bool ListenWithHttps { get; }- /// <summary>- /// Gets a value indicating whether a client can connect to the server over HTTPS, either directly or via a- /// reverse proxy.- /// </summary>- bool CanConnectWithHttps { get; }-/// <summary>/// Gets a value indicating whether this instance has update available./// </summary>