mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-12 07:40:30 -08:00
fix(rp): Make sure that the WG SK is erased ASAP
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user