Fix VPN namespace name for external IP query
All checks were successful
Build and Release / build-and-release (push) Successful in 1m9s

Use correct namespace name 'vpn' instead of 'openvpn-namespace'.

Version: v0.1.233
This commit is contained in:
Christoffer Martinsson 2025-12-01 14:09:07 +01:00
parent 885e19f7fd
commit 1fcaf4a670
5 changed files with 8 additions and 8 deletions

6
Cargo.lock generated
View File

@ -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",

View File

@ -1,6 +1,6 @@
[package]
name = "cm-dashboard-agent"
version = "0.1.232"
version = "0.1.233"
edition = "2021"
[dependencies]

View File

@ -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<String> {
let output = Command::new("timeout")
.args(&[
@ -858,7 +858,7 @@ impl SystemdCollector {
"ip",
"netns",
"exec",
"openvpn-namespace",
"vpn",
"curl",
"-s",
"--max-time",

View File

@ -1,6 +1,6 @@
[package]
name = "cm-dashboard"
version = "0.1.232"
version = "0.1.233"
edition = "2021"
[dependencies]

View File

@ -1,6 +1,6 @@
[package]
name = "cm-dashboard-shared"
version = "0.1.232"
version = "0.1.233"
edition = "2021"
[dependencies]