WebServiceSettingsApi: fixed bug in BackupSettingsAsync() that caused backup operation to fail.

This commit is contained in:
Shreyas Zare
2023-08-13 18:49:04 +05:30
parent 4a7e770d2f
commit a361098440

View File

@@ -1421,6 +1421,7 @@ namespace DnsServerCore
backupZip.CreateEntryFromFile(dnsSettingsFile, "dns.config");
//backup web service cert
if (!string.IsNullOrEmpty(_dnsWebService._webServiceTlsCertificatePath))
{
string webServiceTlsCertificatePath = _dnsWebService.ConvertToAbsolutePath(_dnsWebService._webServiceTlsCertificatePath);
@@ -1432,6 +1433,7 @@ namespace DnsServerCore
}
//backup optional protocols cert
if (!string.IsNullOrEmpty(_dnsWebService._dnsTlsCertificatePath))
{
string dnsTlsCertificatePath = _dnsWebService.ConvertToAbsolutePath(_dnsWebService._dnsTlsCertificatePath);