mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 22:10:01 -04:00
fix ipv6 udp and wisp-mux 2.0.2
This commit is contained in:
parent
7583a9c3fd
commit
595af12cb7
5 changed files with 7 additions and 6 deletions
|
@ -184,7 +184,8 @@ async fn handle_mux(packet: ConnectPacket, mut stream: MuxStream) -> Result<bool
|
|||
.map_err(|x| WispError::Other(Box::new(x)))?;
|
||||
}
|
||||
StreamType::Udp => {
|
||||
let udp_socket = UdpSocket::bind("0.0.0.0:0")
|
||||
let uri = lookup_host(uri).await.map_err(|x| WispError::Other(Box::new(x)))?.next().ok_or(WispError::InvalidUri)?;
|
||||
let udp_socket = UdpSocket::bind(if uri.is_ipv4() { "0.0.0.0:0" } else { "[::]:0" })
|
||||
.await
|
||||
.map_err(|x| WispError::Other(Box::new(x)))?;
|
||||
udp_socket
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue