All checks were successful
Build and Release / build-and-release (push) Successful in 1m13s
Replace JSON parsing with simpler text output parsing from tailscale status command. The text format clearly shows hostname and connection method (direct/relay/idle) making detection more reliable. Fixes issues with incorrect hostname (localhost instead of actual name) and incorrect connection method detection (showing relay when actually using direct connection).
24 lines
657 B
TOML
24 lines
657 B
TOML
[package]
|
|
name = "cm-dashboard-agent"
|
|
version = "0.1.264"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
cm-dashboard-shared = { workspace = true }
|
|
tokio = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
chrono = { workspace = true }
|
|
clap = { workspace = true }
|
|
zmq = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
lettre = { workspace = true }
|
|
gethostname = { workspace = true }
|
|
chrono-tz = "0.8"
|
|
toml = { workspace = true }
|
|
async-trait = "0.1"
|
|
reqwest = { version = "0.11", features = ["json", "blocking"] }
|
|
futures = "0.3" |