aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-04-16 21:45:00 -0400
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-04-16 21:45:00 -0400
commitfee76097f44d0f11356e4a559df9178063b1bf29 (patch)
treeff98807bebecb5ab4dec4b0b035b7031e5116a89 /Emby.Server.Implementations/ApplicationHost.cs
parent5bc6c08a0aead61ef8e7566916fbe36a4dc5bd3d (diff)
Remove CanConnectWithHttps Property
It is only used in one place and only adds confusion by existing
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 6a324e090..a39baa84a 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -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