WebServiceSettingsApi: minor code refactoring changes done.

This commit is contained in:
Shreyas Zare
2024-06-15 15:07:32 +05:30
parent 10d0235529
commit eecbc7d5d6

View File

@@ -2070,11 +2070,11 @@ namespace DnsServerCore
}
}
if (dnsSettings)
RestartService(true, true, oldWebServiceLocalAddresses, oldWebServiceHttpPort, oldWebServiceTlsPort);
Utf8JsonWriter jsonWriter = context.GetCurrentJsonWriter();
WriteDnsSettings(jsonWriter);
if (dnsSettings)
RestartService(true, true, oldWebServiceLocalAddresses, oldWebServiceHttpPort, oldWebServiceTlsPort);
}
public void ForceUpdateBlockLists(HttpContext context)