From 964284e7745403afb2f56fd010a52bbd65de4002 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sat, 25 Nov 2023 23:03:31 -0500 Subject: [PATCH] Add quic-v1 protocol ID to listen_on --- coordinator/src/p2p.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coordinator/src/p2p.rs b/coordinator/src/p2p.rs index 80de3da5..ab1928fc 100644 --- a/coordinator/src/p2p.rs +++ b/coordinator/src/p2p.rs @@ -279,7 +279,7 @@ impl LibP2p { .unwrap() .build(); const PORT: u16 = 30563; // 5132 ^ (('c' << 8) | 'o') - swarm.listen_on(format!("/ip4/0.0.0.0/udp/{PORT}").parse().unwrap()).unwrap(); + swarm.listen_on(format!("/ip4/0.0.0.0/udp/{PORT}/quic-v1").parse().unwrap()).unwrap(); let (broadcast_send, mut broadcast_recv) = mpsc::unbounded_channel(); let (receive_send, receive_recv) = mpsc::unbounded_channel();