Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

fix: Update splitAddr function to correctly parse multiaddrs #174

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

Marcel-G
Copy link
Contributor

@Marcel-G Marcel-G commented Jun 1, 2023

resolves #171

Dialing a peer with a multiaddr that contains both /webrtc-direct and /webrtc results in CodeError: webrtc protocol was not present in multiaddr. when the multiaddr is perfectly valid. For example:

/ip4/127.0.0.1/udp/9090/webrtc-direct/certhash/uEiBUr89tH2P9paTCPn-AcfVZcgvIvkwns96t4h55IpxFtA/p2p/12D3KooWB64sJqc3T3VCaubQCrfCvvfummrAA9z1vEXHJT77ZNJh/p2p-circuit/webrtc/p2p/12D3KooWFNBgv86tcpcYUHQz9FWGTrTmpMgr8feZwQXQySVTo3A7

@p-shahi p-shahi changed the title Correct the splitAddr function fix: Correct the splitAddr function Jun 1, 2023
@Marcel-G Marcel-G marked this pull request as ready for review June 1, 2023 19:28
Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

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

Good catch! Thanks for fixing this.

@maschad maschad changed the title fix: Correct the splitAddr function fix: Update splitAddr function to correctly parse multiaddrs Jun 1, 2023
@maschad maschad merged commit 22a7029 into libp2p:main Jun 1, 2023
github-actions bot pushed a commit that referenced this pull request Jun 1, 2023
## [2.0.5](v2.0.4...v2.0.5) (2023-06-01)

### Bug Fixes

* Update splitAddr function to correctly parse multiaddrs ([#174](#174)) ([22a7029](22a7029))
@github-actions
Copy link

github-actions bot commented Jun 1, 2023

🎉 This PR is included in version 2.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Marcel-G Marcel-G deleted the fix/issue-171 branch June 2, 2023 05:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dialling webrtc peers over webrtc-direct relay connection
2 participants