Skip to content

Commit

Permalink
Also show record type in diff.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed Apr 26, 2024
1 parent f140d1f commit 0c0d72c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/idns/commands/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use domain::base::iana::{Class, Rtype};
use domain::base::message::Message;
use domain::base::message_builder::MessageBuilder;
use domain::base::name::{Name, ParsedName, ToName, UncertainName};
use domain::base::rdata::RecordData;
use domain::net::client::{dgram, stream};
use domain::net::client::request::RequestMessage;
use domain::rdata::{AllRecordData, Ns, Soa};
Expand Down Expand Up @@ -385,7 +386,10 @@ impl Query {
/// Prints the content of a diff.
fn output_diff(&self, diff: Vec<DiffItem>) {
for item in diff {
println!("{}{} {} {}", item.0, item.1.0, item.1.1, item.1.2);
println!(
"{}{} {} {} {}",
item.0, item.1.0, item.1.1, item.1.2.rtype(), item.1.2
);
}
}
}
Expand Down

0 comments on commit 0c0d72c

Please sign in to comment.