mirror of
https://github.com/NLnetLabs/dnst.git
synced 2026-09-28 04:34:57 +02:00
Even closer -b output to that of ldns-signzone.
This commit is contained in:
@@ -174,10 +174,12 @@ impl SignZone {
|
||||
records
|
||||
.write_with_comments(&mut std::io::stdout().lock(), |r, writer| {
|
||||
if let ZoneRecordData::Nsec3(nsec3) = r.data() {
|
||||
writer.write(b" ;{ ")?;
|
||||
writer.write(b" ;{ flags: ")?;
|
||||
|
||||
if nsec3.opt_out() {
|
||||
writer.write(b"flags: optout, ")?;
|
||||
writer.write(b"optout")?;
|
||||
} else {
|
||||
writer.write(b"-")?;
|
||||
}
|
||||
|
||||
let next_owner_hash_hex = format!("{}", nsec3.next_owner());
|
||||
@@ -197,7 +199,7 @@ impl SignZone {
|
||||
format!("<invalid name: {next_owner_hash_hex}")
|
||||
};
|
||||
|
||||
write!(writer, "from: {from}, to: {to}}}")
|
||||
write!(writer, ", from: {from}, to: {to}}}")
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user