diff --git a/iroh-base/src/node_addr.rs b/iroh-base/src/node_addr.rs index 08ca55dee84..d3b13bedd54 100644 --- a/iroh-base/src/node_addr.rs +++ b/iroh-base/src/node_addr.rs @@ -36,7 +36,7 @@ use crate::{NodeId, PublicKey, RelayUrl}; /// [discovery]: https://docs.rs/iroh/*/iroh/index.html#node-discovery /// [home relay]: https://docs.rs/iroh/*/iroh/relay/index.html /// [Relay server]: https://docs.rs/iroh/*/iroh/index.html#relay-servers -#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct NodeAddr { /// The node's identifier. pub node_id: NodeId,