Skip to content

Commit 78aa8f5

Browse files
qaqlyhqaq廖应海
andauthored
fix: on windows platform , not recognition localhost ip address bugs, (#627)
Co-authored-by: 廖应海 <liaoyinghai@yymt.com>
1 parent 8db3679 commit 78aa8f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stun/examples/stun_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async fn main() -> Result<(), Error> {
3939

4040
let (handler_tx, mut handler_rx) = tokio::sync::mpsc::unbounded_channel();
4141

42-
let conn = UdpSocket::bind("0:0").await?;
42+
let conn = UdpSocket::bind("0.0.0.0:0").await?;
4343
println!("Local address: {}", conn.local_addr()?);
4444

4545
println!("Connecting to: {server}");

0 commit comments

Comments
 (0)