v0.1.2
This commit is contained in:
1 parent
6e57b9e1b8
commit
7b8c7e93fb
48 files changed
+1010
-116
No files matched your search
@@ -225,7 +225,7 @@ pub async fn zone_create(State(st): St, Extension(c): Extension<Caller>, Json(b)
|
||||
if let Err(e) = dns_authoritative::Zone::from_records(&name, records) {
|
||||
return error(StatusCode::UNPROCESSABLE_ENTITY, &e.to_string());
|
||||
}
|
||||
let file = rt.cfg.data_dir().join("zones").join(format!("{}zone", name.to_ascii()));
|
||||
let file = rt.cfg.data_dir().join("zones").join("primary").join(format!("{}zone", name.to_ascii()));
|
||||
if let Err(e) = dns_core::zonefile::atomic_write(&file, text.as_bytes()) {
|
||||
return error(StatusCode::INTERNAL_SERVER_ERROR, &e.to_string());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user