mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-11 00:01:05 +02:00
Add CanConnectWithHttps to interface
This commit is contained in:
parent
387fa474aa
commit
410a322fe2
|
@ -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>
|
/// <inheritdoc/>
|
||||||
/// Gets a value indicating whether a client can connect to the server over HTTPS, either directly or via a
|
|
||||||
/// reverse proxy.
|
|
||||||
/// </summary>
|
|
||||||
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)
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue