aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-04-05 23:30:57 -0400
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-04-05 23:30:57 -0400
commit410a322fe22302eb3c8a37ea38bbe1d7e9d12aff (patch)
tree368edf19b194eb65664ebf3a4dd22db895eb0ded
parent387fa474aa8ee8e237648ab0ea3130b8b35cf92f (diff)
Add CanConnectWithHttps to interface
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs5
-rw-r--r--MediaBrowser.Controller/IServerApplicationHost.cs6
2 files changed, 7 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 8158b4559..9cb747171 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.cs
index d999f76db..7742279f7 100644
--- a/MediaBrowser.Controller/IServerApplicationHost.cs
+++ b/MediaBrowser.Controller/IServerApplicationHost.cs
@@ -44,6 +44,12 @@ namespace MediaBrowser.Controller
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>
/// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value>