mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-03 17:40:34 +00:00
Add quic-v1 protocol ID to listen_on
This commit is contained in:
parent
8d54419ddc
commit
964284e774
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ impl LibP2p {
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.build();
|
.build();
|
||||||
const PORT: u16 = 30563; // 5132 ^ (('c' << 8) | 'o')
|
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 (broadcast_send, mut broadcast_recv) = mpsc::unbounded_channel();
|
||||||
let (receive_send, receive_recv) = mpsc::unbounded_channel();
|
let (receive_send, receive_recv) = mpsc::unbounded_channel();
|
||||||
|
|
Loading…
Reference in a new issue