1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-10 23:29:53 +02:00

Don't persist value for SslCertHash when checking for existence

This commit is contained in:
Bogdan 2024-08-27 00:27:34 +03:00 committed by Mark McDowall
parent 25d9f09a43
commit 98c4cbdd13

View File

@ -381,7 +381,7 @@ public void MigrateConfigFile()
}
// 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()))
if (EnableSsl && (GetValue("SslCertHash", string.Empty, false).IsNotNullOrWhiteSpace() || SslCertPath.IsNullOrWhiteSpace()))
{
SetValue("EnableSsl", false);
}