IPv4 only test for Windows
use std::convert::TryInto;
use std::io;
-use std::net::Ipv6Addr;
+use std::net::Ipv4Addr;
use std::time::Duration;
use super::*;
@@ -56,7 +56,7 @@ async fn test_udp_mux() -> Result<()> {
// })
// .init();
- let udp_socket = UdpSocket::bind((Ipv6Addr::UNSPECIFIED, 0)).await?;
+ let udp_socket = UdpSocket::bind((Ipv4Addr::UNSPECIFIED, 0)).await?;
let addr = udp_socket.local_addr()?;
log::info!("Listening on {}", addr);
@@ -85,17 +85,17 @@ async fn test_udp_mux() -> Result<()> {
#[cfg(all(unix, target_pointer_width = "64"))]
{
- let udp_mux_dyn_3 = Arc::clone(&udp_mux_dyn);
- let h3 = tokio::spawn(async move {
- timeout(
- TIMEOUT,
- test_mux_connection(Arc::clone(&udp_mux_dyn_3), "ufrag3", addr, Network::Ipv6),
- )
- .await
- });
+ // let udp_mux_dyn_3 = Arc::clone(&udp_mux_dyn);
+ // let h3 = tokio::spawn(async move {
+ // timeout(
+ // TIMEOUT,
+ // test_mux_connection(Arc::clone(&udp_mux_dyn_3), "ufrag3", addr, Network::Ipv6),
+ // )
+ // .await
+ // });
- let (r1, r2, r3) = tokio::join!(h1, h2, h3);
- all_results = [r1, r2, r3];
+ let (r1, r2) = tokio::join!(h1, h2);
+ all_results = [r1, r2];
}
#[cfg(any(not(unix), not(target_pointer_width = "64")))]
