Skip to content

Commit

Permalink
fix: on windows platform , not recognition localhost ip address bugs, (
Browse files Browse the repository at this point in the history
…#627)

Co-authored-by: 廖应海 <liaoyinghai@yymt.com>
  • Loading branch information
qaqlyhqaq and 廖应海 authored Nov 10, 2024
1 parent 8db3679 commit 78aa8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stun/examples/stun_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down

0 comments on commit 78aa8f5

Please sign in to comment.