Skip to content

feat: Future-proof NodeAddr #3417

@flub

Description

@flub

The current NodeAddr looks like this:

pub struct NodeAddr {
    pub node_id: NodeId,
    pub relay_url: Option<RelayUrl>,
    pub direct_addresses: BTreeSet<SocketAddr>,
}

However internally we have refactored things into Transports and conceptually the home relay is not that a special a transport. In fact you could easily allow for an iroh endpoint to be reachable via multiple relay servers, perhaps a public one and one reachable only on some private network.

We should make sure that the NodeAddr is more agnostic towards transports.

Metadata

Metadata

Labels

APIc-irohFunctionality of the core iroh crate.featNew feature or request

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions