-
Notifications
You must be signed in to change notification settings - Fork 0
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: support sni tuple in wss multiaddr #39
Conversation
The difference is, exact addresses have no trailing tuples, good addresses can have them. So this is an exact WSS multiaddr:
This is not:
Both would be matched by the When dialing we use exact matchers to decide which transport handles the address, so the first would be handled by the |
Co-authored-by: Alex Potsides <alex@achingbrain.net>
## [1.4.0](v1.3.0...v1.4.0) (2024-10-28) ### Features * support sni tuple in wss multiaddr ([#39](#39)) ([2b687b4](2b687b4))
🎉 This PR is included in version 1.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Not sure whether we want these addrs to appear inexactWSS
orgoodWSS
When testing ipfs/service-worker-gateway#405, I noticed that js-libp2p was failing to calculate whether multiaddrs were dialable or not.
We received two provider multiaddrs for a CID:
the libp2p.direct addrs were being filtered out in https://github.com/libp2p/js-libp2p/blob/717731e49a40142164af6c5c5703f0cad32edbe5/packages/transport-websockets/src/index.ts#L202-L215 and resulting in an error in the console:
libp2p:connection-manager:dial-queue:trace error calculating if multiaddr(s) were dialable +4m NoValidAddressesError: The dial request has no valid addresses