Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

fix: allow dialling ip6 webtransport addresses #60

Merged

Conversation

SgtPooki
Copy link
Member

@SgtPooki SgtPooki commented Mar 23, 2023

  • fix: use valid rfc3986 ipv6 host syntax

@SgtPooki SgtPooki force-pushed the fix/ip6-webtransport-url-construct-failures branch from da150aa to 12a340e Compare March 23, 2023 18:51
Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

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

Can you add some tests please?

@achingbrain
Copy link
Member

Just seen this in the wild I think:

Error: Failed to construct 'WebTransport': The URL 'https://2001:818:e338:5300:4a21:bff:fe2e:bc0:34001/.well-known/libp2p-webtransport?type=noise' is invalid.
at WebTransport.dial...

@achingbrain achingbrain changed the title fix: use valid rfc3986 ipv6 host syntax fix: allow dialling ip6 webtransport addresses Mar 28, 2023
@achingbrain achingbrain merged commit fe4612a into libp2p:main Mar 28, 2023
github-actions bot pushed a commit that referenced this pull request Mar 28, 2023
## [1.0.11](v1.0.10...v1.0.11) (2023-03-28)

### Bug Fixes

* allow dialling ip6 webtransport addresses ([#60](#60)) ([fe4612a](fe4612a))
@github-actions
Copy link

🎉 This PR is included in version 1.0.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

@MarcoPolo
Copy link
Contributor

Isn't this going to be an issue anywhere we dial ipv6 addresses?

@SgtPooki
Copy link
Member Author

SgtPooki commented Apr 7, 2023

Isn't this going to be an issue anywhere we dial ipv6 addresses?

With JS, yep. The URL constructor requires the brackets for ip6

@SgtPooki SgtPooki deleted the fix/ip6-webtransport-url-construct-failures branch June 23, 2023 22:54
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.

3 participants