fix(dns): keep profile values the override leaves blank or off

Refs #7292 #7933
This commit is contained in:
wonfen
2026-09-20 15:08:33 +08:00
committed by Tunglies
parent 9f97d938f5
commit 73ea0fbd80
5 changed files with 81 additions and 75 deletions
+2 -1
View File
@@ -210,7 +210,8 @@ pub async fn validate_dns_config() -> CmdResult<ValidationOutcome> {
return Ok(ValidationOutcome::invalid_from_message("DNS config file not found"));
}
CoreConfigValidator::validate_config_file_outcome(dns_path_str, None)
// A fragment, not a runnable config; the merged result is validated on apply.
CoreConfigValidator::validate_config_file_outcome(dns_path_str, Some(true))
.await
.stringify_err()
}