Remove CanConnectWithHttps Property

It is only used in one place and only adds confusion by existing
This commit is contained in:
Mark Monteiro 2020-04-16 21:45:00 -04:00
parent 5bc6c08a0a
commit fee76097f4
2 changed files with 1 additions and 9 deletions

View File

@ -1413,7 +1413,7 @@ namespace Emby.Server.Implementations
InternalMetadataPath = 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.Implementations
public bool ListenWithHttps => Certificate != null && ServerConfigurationManager.Configuration.EnableHttps;
/// <inheritdoc/>
public bool CanConnectWithHttps => ListenWithHttps || ServerConfigurationManager.Configuration.IsBehindProxy;
public async Task<string> GetLocalApiUrl(CancellationToken cancellationToken)
{
try

View File

@ -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>