It would be great to have a way for multi-relay hopping.
Let's say there's the following network:
[ Peer A ] - [ Relay 1 ] - [ Relay 2 ] - [ Peer B ]
In this example Peer A could reach Peer B via Relay 1 and Relay 2.
Nevertheless it looks like this is not possible at the moment.
The following implementation uses Relay 1 as the relay and tries to connected to Peer B.
This results in HOP_NO_CONN_TO_DST. Which is comprehensible, as Relay 1 has no direct connection to Peer B.
On the other hand, changing the relay address to "/p2p/" + h3.ID().Pretty() + "/p2p-circuit/p2p/" + h4.ID().Pretty() (using Relay 2 instead of Relay 1), leads to a connection error - as Peer A is not able to connect to Relay 2.
To me it would be great to talk to Relay 1 and being able to connect to Peer B.
It would be great to have a way for multi-relay hopping.
Let's say there's the following network:
[ Peer A ] - [ Relay 1 ] - [ Relay 2 ] - [ Peer B ]
In this example Peer A could reach Peer B via Relay 1 and Relay 2. Nevertheless it looks like this is not possible at the moment.
The following implementation uses Relay 1 as the relay and tries to connected to Peer B. This results in
HOP_NO_CONN_TO_DST
. Which is comprehensible, as Relay 1 has no direct connection to Peer B.On the other hand, changing the relay address to
"/p2p/" + h3.ID().Pretty() + "/p2p-circuit/p2p/" + h4.ID().Pretty()
(using Relay 2 instead of Relay 1), leads to a connection error - as Peer A is not able to connect to Relay 2.To me it would be great to talk to Relay 1 and being able to connect to Peer B.