Document HTTPS configuration options

This commit is contained in:
Mark Monteiro
2020-04-02 17:45:33 -04:00
parent ca71ac72ab
commit 387fa474aa
2 changed files with 35 additions and 4 deletions

View File

@@ -420,6 +420,10 @@ namespace Emby.Server.Implementations.HttpServer
return true;
}
/// <summary>
/// Validate a connection from a remote IP address to a URL to see if a redirection to HTTPS is required.
/// </summary>
/// <returns>True if the request is valid, or false if the request is not valid and an HTTPS redirect is required.</returns>
private bool ValidateSsl(string remoteIp, string urlString)
{
if (_config.Configuration.RequireHttps && _appHost.ListenWithHttps)