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(examples): call Swarm::add_external_address in dcutr and relay #4052

Merged
merged 2 commits into from
Jun 9, 2023

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Jun 9, 2023

Description

Observed addresses (aka. external address candidates) of the local node, reported by a remote node
via libp2p-identify, are no longer automatically considered confirmed external addresses, in
other words they are no longer trusted by default. Instead users need to confirm the reported
observed address either manually, or by using libp2p-autonat. In trusted environments users can
simply extract observed addresses from a libp2p-identify::Event::Received { info: libp2p_identify::Info { observed_addr }} and confirm them via Swarm::add_external_address.

Follow-up to #3954.

Notes & open questions

//CC @arpankapoor

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

> Observed addresses (aka. external address candidates) of the local node, reported by a remote node
> via `libp2p-identify`, are no longer automatically considered confirmed external addresses, in
> other words they are no longer trusted by default. Instead users need to confirm the reported
> observed address either manually, or by using `libp2p-autonat`. In trusted environments users can
> simply extract observed addresses from a `libp2p-identify::Event::Received { info:
> libp2p_identify::Info { observed_addr }}` and confirm them via `Swarm::add_external_address`.

Follow-up to libp2p#3954.
@mxinden mxinden added send-it trivial Marks PRs which are considered trivial and don't need approval from another maintainer. labels Jun 9, 2023
protocols/identify/CHANGELOG.md Outdated Show resolved Hide resolved
protocols/identify/CHANGELOG.md Outdated Show resolved Hide resolved
@mxinden
Copy link
Member Author

mxinden commented Jun 9, 2023

Merging here without review as change only affects examples/. @thomaseizinger please still review changelog entry as I think this is a subtle change for downstream users. I plan to specifically highlight this, among other big changes, in the v0.52.0 changelog.

@mergify mergify bot merged commit 2910c98 into libp2p:master Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
send-it trivial Marks PRs which are considered trivial and don't need approval from another maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants