daemonize is added to unix

This commit is contained in:
alex 2026-03-10 19:14:41 +08:00
parent 46536fc587
commit de8bf7cd31
2 changed files with 3 additions and 1 deletions

View File

@ -35,11 +35,12 @@ rustls-pemfile = "2.2.0"
clap = { version = "4.5.60", features = ["derive", "env"] } clap = { version = "4.5.60", features = ["derive", "env"] }
rpassword = "7.4.0" rpassword = "7.4.0"
serde_json = "1.0.149" serde_json = "1.0.149"
daemonize = "0.5.0"
# rolling-file = { path = "../rolling-file" } # rolling-file = { path = "../rolling-file" }
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
libc = "0.2.178" libc = "0.2.178"
daemonize = "0.5.0"
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
wintun = "0.4.0" wintun = "0.4.0"

View File

@ -59,6 +59,7 @@ where T: Serialize,
{ {
let client = Client::new(); let client = Client::new();
let Ok(response) = client let Ok(response) = client
.post(url) .post(url)
.json(&data) .json(&data)