fix(rp): Make sure that the WG SK is erased ASAP

This commit is contained in:
Karolin Varner
2025-08-02 18:36:50 +02:00
parent 6c929f7ddc
commit bae336d633

View File

@@ -443,6 +443,7 @@ pub async fn exchange(options: ExchangeOptions) -> Result<()> {
device
.set_private_key_and_listen_addr(&wgsk, options.listen.map(|ip| ip.port() + 1))
.await?;
std::mem::drop(wgsk);
// Assign the public IP address for the interface
if let Some(ref ip) = options.ip {