fix(network): bump nmrs to 3.5.2

This commit is contained in:
Akrm Al-Hakimi 2026-09-05 17:44:27 -04:00 • committed by Ashley Wulber
parent 1aa03111c5
commit b939b80915
3 changed files with 7 additions and 7 deletions

4
Cargo.lock generated
View file

@ -4366,9 +4366,9 @@ dependencies = [
[[package]]
name = "nmrs"
version = "3.4.0"
version = "3.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62c427203beda58ac05815b356d64a34eeb2fba180b3077d543ebb1472fc1269"
checksum = "aa84a0ad51eda83c8817099a0b613847599c712d049e89d892cca53ed6c4a337"
dependencies = [
"async-trait",
"base64",

View file

@ -26,4 +26,4 @@ tracing.workspace = true
indexmap = "2.13.0"
secure-string = "0.3.0"
uuid = { version = "1.21.0", features = ["v4"] }
nmrs = "3.4.0"
nmrs = "3.5.2"

View file

@ -1,7 +1,7 @@
use indexmap::IndexMap;
use nmrs::{
ActiveConnection, ActiveConnectionState, ConnectType, ConnectivityState, EapOptions,
NetworkEvent, NetworkManager as NmrsManager, NetworkSnapshot, WifiSecurity,
ActiveConnection, ActiveConnectionState, ConnectByUuidConfig, ConnectType, ConnectivityState,
EapOptions, NetworkEvent, NetworkManager as NmrsManager, NetworkSnapshot, WifiSecurity,
agent::{SecretAgent, SecretAgentCapabilities, SecretRequest, SecretResponder, SecretSetting},
};
use rustc_hash::FxHashSet;
@ -916,7 +916,7 @@ impl CosmicNetworkApplet {
cosmic::task::future(async move {
let error = match NmrsManager::new().await {
Ok(nm) => nm
.connect_vpn_by_uuid(&uuid)
.connect_by_uuid(&uuid, ConnectByUuidConfig::default())
.await
.err()
.map(|e| format!("activate VPN {uuid}: {e}")),
@ -1318,7 +1318,7 @@ impl cosmic::Application for CosmicNetworkApplet {
let disconnect_task = cosmic::task::future(async move {
let error = match NmrsManager::new().await {
Ok(nm) => nm
.disconnect_vpn_by_uuid(&uuid)
.disconnect_by_uuid(&uuid)
.await
.err()
.map(|e| format!("disconnect VPN {uuid}: {e}")),