ipv6 added debug
This commit is contained in:
parent
eb18e2edde
commit
2f11cef7d0
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2272,7 +2272,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "punchnet"
|
name = "punchnet"
|
||||||
version = "1.2.4"
|
version = "1.2.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash",
|
"ahash",
|
||||||
"arc-swap",
|
"arc-swap",
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "punchnet"
|
name = "punchnet"
|
||||||
version = "1.2.4"
|
version = "1.2.5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "MIT"
|
||||||
|
description = "punchnet client"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
crc = "3.2.1"
|
crc = "3.2.1"
|
||||||
|
|||||||
@ -16,8 +16,10 @@ use super::Node;
|
|||||||
pub async fn run_ipv6(edge: &'static Node, mut v6_may_change: Receiver<bool>) {
|
pub async fn run_ipv6(edge: &'static Node, mut v6_may_change: Receiver<bool>) {
|
||||||
v6_may_change.recv().await;
|
v6_may_change.recv().await;
|
||||||
loop {
|
loop {
|
||||||
|
error!("v6_may_change received");
|
||||||
tokio::time::sleep(Duration::from_secs(1)).await;
|
tokio::time::sleep(Duration::from_secs(1)).await;
|
||||||
let mut ipv6 = get_current_ipv6();
|
let mut ipv6 = get_current_ipv6();
|
||||||
|
error!("got v6: {:?}", ipv6);
|
||||||
if ipv6.is_none() {
|
if ipv6.is_none() {
|
||||||
tokio::time::sleep(Duration::from_secs(5)).await;
|
tokio::time::sleep(Duration::from_secs(5)).await;
|
||||||
ipv6 = get_current_ipv6();
|
ipv6 = get_current_ipv6();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user