The Free Software Media System - Server Backend & API
Add CanConnectWithHttps to interface
Mark Monteiro410a322fe223
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 8158b45592..9cb7471717 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -1449,10 +1449,7 @@ namespace Emby.Server.Implementations/// <inheritdoc/>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 async Task<string> GetLocalApiUrl(CancellationToken cancellationToken)diff --git a/MediaBrowser.Controller/IServerApplicationHost.cs b/MediaBrowser.Controller/IServerApplicationHost.csindex d999f76dbf..7742279f7a 100644--- a/MediaBrowser.Controller/IServerApplicationHost.cs+++ b/MediaBrowser.Controller/IServerApplicationHost.cs@@ -43,6 +43,12 @@ 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>