diff --git a/rp/src/exchange.rs b/rp/src/exchange.rs index 2eaef5c6..3706a5f2 100644 --- a/rp/src/exchange.rs +++ b/rp/src/exchange.rs @@ -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 {