Fix scheme detection on HC disable upstreams

This commit is contained in:
Ara Sadoyan
2026-10-07 15:02:51 +02:00
parent a8dc98f636
commit ee578854e3
5 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ pub async fn order(domain: &str, credsfile: &str, certs_dir: String, provider: O
let newlist: Vec<String> = DOMAINS.iter().map(|item| item.key().to_string()).collect();
if let Ok(json_content) = serde_json::to_string_pretty(&newlist) {
let autocfg_file = credsfile.replace("/acme_credentials.json", "/domains.json");
if let Err(err) = std::fs::write(&autocfg_file, json_content) {
if let Err(err) = fs::write(&autocfg_file, json_content) {
error!("Error Updating domains for certificates: {} : {}", domain, err);
return Err(Box::from(err));
}