Return TSIG key as result

This commit is contained in:
notplants 2021-05-25 12:35:42 +02:00
parent d1e1944898
commit 01cda6f21e
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ pub fn run() -> Result<(), BoxError> {
let d: Result<RegisterDomainPost, Error> = params.parse();
match d {
Ok(d) => match generate_zone(&d.domain) {
Ok(_) => Ok(Value::String("success".to_string())),
// returns full TSIG key text to new zone as part of success result
Ok(key_text) => Ok(Value::String(key_text)),
Err(e) => Err(Error::from(e)),
},
Err(e) => Err(Error::from(PeachDynDnsError::MissingParams { e })),