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