Add CanConnectWithHttps to interface

This commit is contained in:
Mark Monteiro 2020-04-05 23:30:57 -04:00
parent 387fa474aa
commit 410a322fe2
2 changed files with 7 additions and 4 deletions

View file

@ -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)

View file

@ -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>