diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-09-29 15:17:54 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-09-29 15:17:54 -0400 |
| commit | 878abbddda4da46811d8709ec90248b9c1b5f569 (patch) | |
| tree | b4032c32991dfa5293fcd27f23a00ea5a45ba8fb /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | 134e74414d2644f1c345a2ef8876504aaaa69027 (diff) | |
fixes #1427 - [Feature Request]: Require Encryption
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 699621043..57c509923 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -1931,13 +1931,13 @@ namespace Emby.Server.Implementations { get { - return SupportsHttps && ServerConfigurationManager.Configuration.EnableHttps; + return SupportsHttps && (ServerConfigurationManager.Configuration.EnableHttps || ServerConfigurationManager.Configuration.RequireHttps); } } public bool SupportsHttps { - get { return Certificate != null; } + get { return Certificate != null || ServerConfigurationManager.Configuration.IsBehindProxy; } } public async Task<string> GetLocalApiUrl() |
