From 1fcaf4a670da548bd8d66843cdecfe4b4eb59e09 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 1 Dec 2025 14:09:07 +0100 Subject: [PATCH] Fix VPN namespace name for external IP query Use correct namespace name 'vpn' instead of 'openvpn-namespace'. Version: v0.1.233 --- Cargo.lock | 6 +++--- agent/Cargo.toml | 2 +- agent/src/collectors/systemd.rs | 4 ++-- dashboard/Cargo.toml | 2 +- shared/Cargo.toml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 98a33c9..d092510 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -279,7 +279,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.232" +version = "0.1.233" dependencies = [ "anyhow", "chrono", @@ -301,7 +301,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.232" +version = "0.1.233" dependencies = [ "anyhow", "async-trait", @@ -325,7 +325,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.232" +version = "0.1.233" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 9c4988e..4533e4d 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.232" +version = "0.1.233" edition = "2021" [dependencies] diff --git a/agent/src/collectors/systemd.rs b/agent/src/collectors/systemd.rs index af9ee5c..7500879 100644 --- a/agent/src/collectors/systemd.rs +++ b/agent/src/collectors/systemd.rs @@ -850,7 +850,7 @@ impl SystemdCollector { } } - /// Get VPN external IP by querying through the openvpn-namespace + /// Get VPN external IP by querying through the vpn namespace fn get_vpn_external_ip(&self) -> Option { let output = Command::new("timeout") .args(&[ @@ -858,7 +858,7 @@ impl SystemdCollector { "ip", "netns", "exec", - "openvpn-namespace", + "vpn", "curl", "-s", "--max-time", diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index 1fa155d..4662202 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.232" +version = "0.1.233" edition = "2021" [dependencies] diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 65bc62f..17c5165 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.232" +version = "0.1.233" edition = "2021" [dependencies]