Skip to content

Commit ee67d96

Browse files
author
“ramfox”
committed
rename QuicMappedAddrs to NodeIdMappedAddr and add IpMappedAddr
also fix weird rebase errors
1 parent c5d51fd commit ee67d96

File tree

5 files changed

+348
-227
lines changed

5 files changed

+348
-227
lines changed

iroh/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ webpki = { package = "rustls-webpki", version = "0.102" }
9595
webpki-roots = "0.26"
9696
x509-parser = "0.16"
9797
z32 = "1.0.3"
98-
net-report = { package = "iroh-net-report", path = "../iroh-net-report", version = "0.29", default-features = false }
98+
net-report = { package = "iroh-net-report", path = "../iroh-net-report", version = "0.30", default-features = false }
9999

100100
# metrics
101101
iroh-metrics = { version = "0.30", default-features = false }

iroh/src/endpoint.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use crate::{
3636
dns::DnsDiscovery, pkarr::PkarrPublisher, ConcurrentDiscovery, Discovery, DiscoveryTask,
3737
},
3838
dns::{default_resolver, DnsResolver},
39-
magicsock::{self, Handle, QuicMappedAddr},
39+
magicsock::{self, Handle, NodeIdMappedAddr},
4040
tls,
4141
watchable::Watcher,
4242
};
@@ -536,7 +536,6 @@ impl Endpoint {
536536
async fn bind(static_config: StaticConfig, msock_opts: magicsock::Options) -> Result<Self> {
537537
let msock = magicsock::MagicSock::spawn(msock_opts).await?;
538538
trace!("created magicsock");
539-
trace!("created quinn endpoint");
540539
debug!(version = env!("CARGO_PKG_VERSION"), "iroh Endpoint created");
541540
let ep = Self {
542541
msock: msock.clone(),
@@ -637,7 +636,7 @@ impl Endpoint {
637636
&self,
638637
node_id: NodeId,
639638
alpn: &[u8],
640-
addr: QuicMappedAddr,
639+
addr: NodeIdMappedAddr,
641640
) -> Result<Connection> {
642641
debug!("Attempting connection...");
643642
let client_config = {
@@ -1004,7 +1003,7 @@ impl Endpoint {
10041003
async fn get_mapping_addr_and_maybe_start_discovery(
10051004
&self,
10061005
node_addr: NodeAddr,
1007-
) -> Result<(QuicMappedAddr, Option<DiscoveryTask>)> {
1006+
) -> Result<(NodeIdMappedAddr, Option<DiscoveryTask>)> {
10081007
let node_id = node_addr.node_id;
10091008

10101009
// Only return a mapped addr if we have some way of dialing this node, in other

0 commit comments

Comments
 (0)