Skip to content

feat(iroh): do not advertise deprecated IPv6 addrs#4106

Open
dignifiedquire wants to merge 2 commits intomainfrom
feat-deprecated-ips
Open

feat(iroh): do not advertise deprecated IPv6 addrs#4106
dignifiedquire wants to merge 2 commits intomainfrom
feat-deprecated-ips

Conversation

@dignifiedquire
Copy link
Copy Markdown
Contributor

@dignifiedquire dignifiedquire commented Apr 13, 2026

Description

This skips advertising deprecated IPv6 addresses in nat traversal, as they are not supposed to be used for new connections.

Fixes #4071

Breaking Changes

None

Notes & open questions

  • There are more flags on IPv6 addresses, should we take them into account in some form as well?

@github-actions
Copy link
Copy Markdown

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

Last updated: 2026-04-13T10:03:12Z

@github-actions
Copy link
Copy Markdown

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: 1b5ae81

@n0bot n0bot bot added this to iroh Apr 13, 2026
@github-project-automation github-project-automation bot moved this to 🚑 Needs Triage in iroh Apr 13, 2026
if !bound.ip().is_unspecified() {
addrs.entry(local).or_insert(DirectAddrType::Local);
let flags = find_flags(&netmon_state, local.ip());
addrs.entry(local).or_insert((DirectAddrType::Local, flags));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would it be simpler to use DirectAddrType::LocalDeprecated or something? Of will that be too limiting quickly? I'm not very familiar with these flags so not sure what else they capture.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

there are potentially more flags, so we could do this, but currently the type is much more like a source, so not sure I want to add something like flags to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🚑 Needs Triage

Development

Successfully merging this pull request may close these issues.

2 participants