From 05e517584fb553811f438e3aedb9de00435cd1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BA=94=E6=B5=B7?= Date: Thu, 7 Nov 2024 13:24:12 +0800 Subject: [PATCH] fix: on windows platform , not recognition localhost ip address bugs, --- stun/examples/stun_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stun/examples/stun_client.rs b/stun/examples/stun_client.rs index 48e2c0415..2529eaac7 100644 --- a/stun/examples/stun_client.rs +++ b/stun/examples/stun_client.rs @@ -39,7 +39,7 @@ async fn main() -> Result<(), Error> { let (handler_tx, mut handler_rx) = tokio::sync::mpsc::unbounded_channel(); - let conn = UdpSocket::bind("0:0").await?; + let conn = UdpSocket::bind("0.0.0.0:0").await?; println!("Local address: {}", conn.local_addr()?); println!("Connecting to: {server}");