Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upgrade observed address to ip mapping #2941

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Feb 5, 2025

When an observed address with a publicly routable IPv4 host is confirmed by autonat, and there's only one listener it could be associated with, upgrade the observed address to an IP mapping, this allows the DNS mapping to add SNI tuples to corresponding transport addresses with a TLS tuple.

This will, for example, detect when external infrastructure such as a router has been configured manually (e.g. not by UPnP) to forward traffic to the current node.

Fixes #2929

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

When an observed address with a publicly routable IPv4 host is
confirmed by autonat, and there's only one listener it could be
associated with, upgrade the observed address to an IP mapping,
this allows the DNS mapping to add SNI tuples to corresponding
transport addresses with a TLS tuple.

Fixes #2929
@achingbrain achingbrain requested a review from a team as a code owner February 5, 2025 10:27
@achingbrain achingbrain merged commit d795be1 into main Feb 5, 2025
32 checks passed
@achingbrain achingbrain deleted the fix/upgrade-observed-address-to-ip-mapping branch February 5, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AutoTLS IPv4 Multiaddr(s) Do Not Upgrade
1 participant