mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-28 06:23:08 -08:00
chore(rp): Make sure genetlink is cleaned up
This commit is contained in:
@@ -393,7 +393,10 @@ pub async fn exchange(options: ExchangeOptions) -> Result<()> {
|
|||||||
|
|
||||||
// Deploy the classic wireguard private key.
|
// Deploy the classic wireguard private key.
|
||||||
let (connection, mut genetlink, _) = genetlink::new_connection()?;
|
let (connection, mut genetlink, _) = genetlink::new_connection()?;
|
||||||
tokio::spawn(connection);
|
try_spawn_daemon(async move {
|
||||||
|
connection.await;
|
||||||
|
Ok(())
|
||||||
|
})?;
|
||||||
|
|
||||||
let wgsk_path = options.private_keys_dir.join("wgsk");
|
let wgsk_path = options.private_keys_dir.join("wgsk");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user