1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-03 13:34:54 +00:00

Fixed: Disable SSL on start if certificate path is not set

(cherry picked from commit 4e19fec123900b8ba1252b640f26f2a4983683ff)
This commit is contained in:
Mark McDowall 2023-12-31 13:16:41 -08:00 committed by Bogdan
parent 6001b76f44
commit d643f63757

View file

@ -329,8 +329,8 @@ public void MigrateConfigFile()
return;
}
// If SSL is enabled and a cert hash is still in the config file disable SSL
if (EnableSsl && GetValue("SslCertHash", null).IsNotNullOrWhiteSpace())
// If SSL is enabled and a cert hash is still in the config file or cert path is empty disable SSL
if (EnableSsl && (GetValue("SslCertHash", null).IsNotNullOrWhiteSpace() || SslCertPath.IsNullOrWhiteSpace()))
{
SetValue("EnableSsl", false);
}