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: allow dialing multiaddrs without peer ids #1548

Merged
merged 4 commits into from Jan 16, 2023

Conversation

achingbrain
Copy link
Member

Most multiaddrs have a peer id, e.g. /ip4/123.123.123.123/tcp/234/p2p/Qmfoo but some cannot, e.g. /unix/tmp/app.sock - we should still be able to dial these addresses with the caveat that the dialer shoul have some other way of obtaining the peer id to ensure they aren't being man-in-the-middled.

This also allows dialing dnsaddrs that are configured as round-robin addresses for load balancing.

Most multiaddrs have a peer id, e.g. `/ip4/123.123.123.123/tcp/234/p2p/Qmfoo`
but some cannot, e.g. `/unix/tmp/app.sock` - we should still be able
to dial these addresses with the caveat that the dialer shoul have some
other way of obtaining the peer id to ensure they aren't being man-in-the-middled.
@achingbrain achingbrain merged commit 398e231 into master Jan 16, 2023
@achingbrain achingbrain deleted the fix/allow-dialing-without-peer-ids branch January 16, 2023 08:35
@mxinden
Copy link
Member

mxinden commented Jan 16, 2023

Cross-referencing libp2p/specs#458 here for future us.

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.

None yet

2 participants