Skip to content

Commit c04d5a8

Browse files
committed
Trigger hole-punching.
1 parent cc4a4aa commit c04d5a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zilliqa/src/p2p_node.rs

+1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ impl P2pNode {
235235
self.swarm.dial(
236236
DialOpts::peer_id(*peer)
237237
.addresses(vec![address.clone()])
238+
.override_role() // triggers hole-punching
238239
.build(),
239240
)?;
240241
self.swarm

0 commit comments

Comments
 (0)