fix server bind addr

This commit is contained in:
GroovieGermanikus 2024-12-05 15:47:29 +01:00
parent 43901ff2c4
commit 035a6680d1
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ pub fn server_loop(
let mut events = mio::Events::with_capacity(1024);
// Create the UDP listening socket, and register it with the event loop.
let mut socket = mio::net::UdpSocket::bind("[::]:0".parse().unwrap()).unwrap();
let mut socket = mio::net::UdpSocket::bind(socket_addr).unwrap();
let enable_pacing = if quic_params.enable_pacing {
set_txtime_sockopt(&socket).is_ok()