fix(SwarmBuilder): prioritize relay, then websocket, then any other#4672
fix(SwarmBuilder): prioritize relay, then websocket, then any other#4672mergify[bot] merged 6 commits intomasterfrom
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.
mxinden
left a comment
There was a problem hiding this comment.
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