]> git.bitcoin.ninja Git - ldk-sample/commitdiff
Its 2023, its time to support v6
authorMatt Corallo <git@bluematt.me>
Wed, 8 Feb 2023 17:52:44 +0000 (17:52 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 8 Feb 2023 17:52:44 +0000 (17:52 +0000)
src/main.rs

index 57da6d15fb501ca373c87bc2c3fbac9c72e4193e..5bc3662a89059cd56e98da2248a68dcd624e1e5b 100644 (file)
@@ -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 {