From 2f11cef7d035d70ed92ff455a42c3475cc43343e Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 12 Jun 2026 09:25:29 +0800 Subject: [PATCH] ipv6 added debug --- Cargo.lock | 2 +- Cargo.toml | 4 +++- src/network/ipv6.rs | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bd6f174..926c77e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2272,7 +2272,7 @@ dependencies = [ [[package]] name = "punchnet" -version = "1.2.4" +version = "1.2.5" dependencies = [ "ahash", "arc-swap", diff --git a/Cargo.toml b/Cargo.toml index 3effc6e..193b440 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,9 @@ [package] name = "punchnet" -version = "1.2.4" +version = "1.2.5" edition = "2021" +license = "MIT" +description = "punchnet client" [dependencies] crc = "3.2.1" diff --git a/src/network/ipv6.rs b/src/network/ipv6.rs index d699750..d94e8f3 100755 --- a/src/network/ipv6.rs +++ b/src/network/ipv6.rs @@ -16,8 +16,10 @@ use super::Node; pub async fn run_ipv6(edge: &'static Node, mut v6_may_change: Receiver) { v6_may_change.recv().await; loop { + error!("v6_may_change received"); tokio::time::sleep(Duration::from_secs(1)).await; let mut ipv6 = get_current_ipv6(); + error!("got v6: {:?}", ipv6); if ipv6.is_none() { tokio::time::sleep(Duration::from_secs(5)).await; ipv6 = get_current_ipv6();