fix(network): bump nmrs to 3.5.2
This commit is contained in:
parent
1aa03111c5
commit
b939b80915
3 changed files with 7 additions and 7 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -4366,9 +4366,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nmrs"
|
name = "nmrs"
|
||||||
version = "3.4.0"
|
version = "3.5.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "62c427203beda58ac05815b356d64a34eeb2fba180b3077d543ebb1472fc1269"
|
checksum = "aa84a0ad51eda83c8817099a0b613847599c712d049e89d892cca53ed6c4a337"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"base64",
|
"base64",
|
||||||
|
|
|
||||||
|
|
@ -26,4 +26,4 @@ tracing.workspace = true
|
||||||
indexmap = "2.13.0"
|
indexmap = "2.13.0"
|
||||||
secure-string = "0.3.0"
|
secure-string = "0.3.0"
|
||||||
uuid = { version = "1.21.0", features = ["v4"] }
|
uuid = { version = "1.21.0", features = ["v4"] }
|
||||||
nmrs = "3.4.0"
|
nmrs = "3.5.2"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
use indexmap::IndexMap;
|
use indexmap::IndexMap;
|
||||||
use nmrs::{
|
use nmrs::{
|
||||||
ActiveConnection, ActiveConnectionState, ConnectType, ConnectivityState, EapOptions,
|
ActiveConnection, ActiveConnectionState, ConnectByUuidConfig, ConnectType, ConnectivityState,
|
||||||
NetworkEvent, NetworkManager as NmrsManager, NetworkSnapshot, WifiSecurity,
|
EapOptions, NetworkEvent, NetworkManager as NmrsManager, NetworkSnapshot, WifiSecurity,
|
||||||
agent::{SecretAgent, SecretAgentCapabilities, SecretRequest, SecretResponder, SecretSetting},
|
agent::{SecretAgent, SecretAgentCapabilities, SecretRequest, SecretResponder, SecretSetting},
|
||||||
};
|
};
|
||||||
use rustc_hash::FxHashSet;
|
use rustc_hash::FxHashSet;
|
||||||
|
|
@ -916,7 +916,7 @@ impl CosmicNetworkApplet {
|
||||||
cosmic::task::future(async move {
|
cosmic::task::future(async move {
|
||||||
let error = match NmrsManager::new().await {
|
let error = match NmrsManager::new().await {
|
||||||
Ok(nm) => nm
|
Ok(nm) => nm
|
||||||
.connect_vpn_by_uuid(&uuid)
|
.connect_by_uuid(&uuid, ConnectByUuidConfig::default())
|
||||||
.await
|
.await
|
||||||
.err()
|
.err()
|
||||||
.map(|e| format!("activate VPN {uuid}: {e}")),
|
.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 disconnect_task = cosmic::task::future(async move {
|
||||||
let error = match NmrsManager::new().await {
|
let error = match NmrsManager::new().await {
|
||||||
Ok(nm) => nm
|
Ok(nm) => nm
|
||||||
.disconnect_vpn_by_uuid(&uuid)
|
.disconnect_by_uuid(&uuid)
|
||||||
.await
|
.await
|
||||||
.err()
|
.err()
|
||||||
.map(|e| format!("disconnect VPN {uuid}: {e}")),
|
.map(|e| format!("disconnect VPN {uuid}: {e}")),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue