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

feat: Add SNI support #312

Merged
merged 1 commit into from
Mar 6, 2023
Merged

feat: Add SNI support #312

merged 1 commit into from
Mar 6, 2023

Conversation

MarcoPolo
Copy link
Contributor

Adds the JS part of multiformats/multiaddr#138

@achingbrain achingbrain merged commit b44f608 into master Mar 6, 2023
@achingbrain achingbrain deleted the marco/sni branch March 6, 2023 16:43
github-actions bot pushed a commit that referenced this pull request Mar 6, 2023
## [11.6.0](v11.5.0...v11.6.0) (2023-03-06)

### Features

* Add SNI support ([#312](#312)) ([b44f608](b44f608))
@github-actions
Copy link

github-actions bot commented Mar 6, 2023

🎉 This PR is included in version 11.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

achingbrain added a commit to multiformats/js-multiaddr-to-uri that referenced this pull request May 19, 2023
I wanted to support `/tls/ws`, `/tls/http`, and `/tls/sni/example.com/http`. Unfortunately the existing code interprets these multiaddrs left to right in a reduce loop. These multiaddrs (and multiaddrs in general) need to be parsed right to left. This refactors the code to so that it is interpreted right to left.

It's a bit verbose, but straightforward.

This is somewhat blocked on multiformats/js-multiaddr#312 (Not strictly blocked, but would be good to bump the dep when that is merged).

This is needed because js-libp2p-websockets uses this library, and without this we can't dial addresses that use `/tls/ws` or `/tls/sni/example.com/ws...`

---------

Co-authored-by: achingbrain <alex@achingbrain.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants