File iroh-net-hichory-dns.patch of Package rust-iroh-net
--- iroh-net-0.28.1/Cargo.toml
+++ iroh-net-0.28.1/Cargo.toml
@@ -146,10 +146,10 @@
version = "0.4.3"
[dependencies.hickory-proto]
-version = "=0.25.0-alpha.2"
+version = "0.24.1"
[dependencies.hickory-resolver]
-version = "=0.25.0-alpha.2"
+version = "0.24.1"
[dependencies.hostname]
version = "0.3.1"
diff --git a/iroh-net/src/dns/node_info.rs b/iroh-net/src/dns/node_info.rs
index c1539a550..79783e67a 100644
--- iroh-net-0.28.1//src/dns/node_info.rs
+++ iroh-net-0.28.1//src/dns/node_info.rs
@@ -323,7 +323,7 @@ impl<T: FromStr + Display + Hash + Ord> TxtAttrs<T> {
pub fn from_hickory_records(records: &[hickory_proto::rr::Record]) -> Result<Self> {
use hickory_proto::rr;
let mut records = records.iter().filter_map(|rr| match rr.data() {
- rr::RData::TXT(txt) => {
+ Some(rr::RData::TXT(txt)) => {
node_id_from_hickory_name(rr.name()).map(|node_id| (node_id, txt))
}
_ => None,