Skip to content

feat: expose known remote addrs#3752

Merged
Frando merged 7 commits intofeat-multipathfrom
Frando/remote-addrs
Dec 15, 2025
Merged

feat: expose known remote addrs#3752
Frando merged 7 commits intofeat-multipathfrom
Frando/remote-addrs

Conversation

@Frando
Copy link
Copy Markdown
Member

@Frando Frando commented Dec 9, 2025

Description

Adds Endpoint::remote_info which returns Option<RemoteInfo>. The RemoteInfo exposes an iterator over all transport addrs for this remote that we know about.

Fixes #3521

Breaking Changes

Notes & open questions

This basically copies the RemotePathInfo from the RemoteStateActor into a new struct RemoteInfo. So, this an async fn over the channel to the RemoteStateActor, and allocates. As this is a rather niche API, I think that's fine.

I wasn't entirely sure how much info we want to expose. Right now, the PR only includes the latest Source for the address, as I wasn't sure if we really want or need to expose the full list of sources.

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.
    • List all breaking changes in the above "Breaking Changes" section.
    • Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are:

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 9, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3752/docs/iroh/

Last updated: 2025-12-12T14:05:02Z

@Frando Frando marked this pull request as ready for review December 9, 2025 15:38
@Frando Frando force-pushed the Frando/remote-addrs branch 2 times, most recently from 91b4756 to 4449690 Compare December 9, 2025 15:45
Copy link
Copy Markdown
Contributor

@dignifiedquire dignifiedquire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

given how easy it is to implement this, and how useful this is for users, I would say, lets do this

@n0bot n0bot bot added this to iroh Dec 9, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Dec 9, 2025
@Frando Frando force-pushed the Frando/remote-addrs branch from 93612f5 to 299d985 Compare December 10, 2025 12:17
Copy link
Copy Markdown
Contributor

@flub flub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As usual I'm anxious about creating any API surface and am arguing to make it smaller 😁 😅 😰

@Frando Frando requested a review from flub December 12, 2025 13:59
@Frando Frando merged commit 4c4f242 into feat-multipath Dec 15, 2025
18 of 28 checks passed
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in iroh Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants