-
Notifications
You must be signed in to change notification settings - Fork 996
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(SwarmBuilder): prioritize relay, then websocket, then any other #4672
Conversation
@thomaseizinger can you expand on your use-case? Why do you pass a DNS transport via rust-libp2p/transports/dns/src/lib.rs Line 273 in c442df8
Yes, the proposed patch here is a solution. Though I wonder whether we can do better. |
Try https://github.com/libp2p/rust-libp2p/blob/master/examples/dcutr/src/main.rs. It doesn't work at the moment :) |
Ah, yes, that makes a lot of sense. Let's go with your patch. Also, let's move I will push another commit shortly. |
Thus allowing a relayed connection over a websocket connection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Thomas for catching this
@mxinden Meta-question: I thought we use the "scope" of conventional commits for the crate that we are changing, which is why I originally named it as |
No strong opinion. To me |
It is the better trade-off I think, despite the ambiguity with the old |
|
Should we name it |
I am fine either way. |
Description
There is a niche case where dialing a relay address does not work if the other transport is a DNS transport. By composing the relay transport first, we avoid this issue.
Notes & open questions
I am not sure if this is the fully correct fix.
Change checklist