From de8bf7cd3148827450953c2e691268dc92b807b7 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 10 Mar 2026 19:14:41 +0800 Subject: [PATCH] daemonize is added to unix --- Cargo.toml | 3 ++- src/bin/punchnet/api/mod.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a5f737a..82ad971 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,11 +35,12 @@ rustls-pemfile = "2.2.0" clap = { version = "4.5.60", features = ["derive", "env"] } rpassword = "7.4.0" serde_json = "1.0.149" -daemonize = "0.5.0" # rolling-file = { path = "../rolling-file" } [target.'cfg(unix)'.dependencies] libc = "0.2.178" +daemonize = "0.5.0" + [target.'cfg(windows)'.dependencies] wintun = "0.4.0" diff --git a/src/bin/punchnet/api/mod.rs b/src/bin/punchnet/api/mod.rs index 14b8040..3a60f55 100644 --- a/src/bin/punchnet/api/mod.rs +++ b/src/bin/punchnet/api/mod.rs @@ -59,6 +59,7 @@ where T: Serialize, { let client = Client::new(); + let Ok(response) = client .post(url) .json(&data)