瀏覽代碼

Add CanConnectWithHttps to interface

Mark Monteiro 5 年之前
父節點
當前提交
410a322fe2
共有 2 個文件被更改,包括 7 次插入4 次删除
  1. 1 4
      Emby.Server.Implementations/ApplicationHost.cs
  2. 6 0
      MediaBrowser.Controller/IServerApplicationHost.cs

+ 1 - 4
Emby.Server.Implementations/ApplicationHost.cs

@@ -1449,10 +1449,7 @@ namespace Emby.Server.Implementations
         /// <inheritdoc/>
         /// <inheritdoc/>
         public bool ListenWithHttps => Certificate != null && ServerConfigurationManager.Configuration.EnableHttps;
         public bool ListenWithHttps => Certificate != null && ServerConfigurationManager.Configuration.EnableHttps;
 
 
-        /// <summary>
-        /// Gets a value indicating whether a client can connect to the server over HTTPS, either directly or via a
-        /// reverse proxy.
-        /// </summary>
+        /// <inheritdoc/>
         public bool CanConnectWithHttps => ListenWithHttps || ServerConfigurationManager.Configuration.IsBehindProxy;
         public bool CanConnectWithHttps => ListenWithHttps || ServerConfigurationManager.Configuration.IsBehindProxy;
 
 
         public async Task<string> GetLocalApiUrl(CancellationToken cancellationToken)
         public async Task<string> GetLocalApiUrl(CancellationToken cancellationToken)

+ 6 - 0
MediaBrowser.Controller/IServerApplicationHost.cs

@@ -43,6 +43,12 @@ namespace MediaBrowser.Controller
         /// </summary>
         /// </summary>
         bool ListenWithHttps { get; }
         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>
         /// <summary>
         /// Gets a value indicating whether this instance has update available.
         /// Gets a value indicating whether this instance has update available.
         /// </summary>
         /// </summary>