From: Matt Corallo Date: Wed, 8 Feb 2023 17:52:44 +0000 (+0000) Subject: Its 2023, its time to support v6 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a8551da720a1cc11992496152c7b3d1fbf3a44a8;p=ldk-sample Its 2023, its time to support v6 --- diff --git a/src/main.rs b/src/main.rs index 57da6d1..5bc3662 100644 --- a/src/main.rs +++ b/src/main.rs @@ -617,7 +617,7 @@ async fn start_ldk() { let stop_listen_connect = Arc::new(AtomicBool::new(false)); let stop_listen = Arc::clone(&stop_listen_connect); tokio::spawn(async move { - let listener = tokio::net::TcpListener::bind(format!("0.0.0.0:{}", listening_port)) + let listener = tokio::net::TcpListener::bind(format!("[::]:{}", listening_port)) .await .expect("Failed to bind to listen port - is something else already listening on it?"); loop {