From e40994d62e5ca066e0b4560a368927bdd21c31b9 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sun, 26 May 2024 21:43:13 +0800 Subject: [PATCH] remove useless KEY_FOR_API --- src/rendezvous_server.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/rendezvous_server.rs b/src/rendezvous_server.rs index bb99ee0..3449e75 100644 --- a/src/rendezvous_server.rs +++ b/src/rendezvous_server.rs @@ -1182,14 +1182,11 @@ impl RendezvousServer { out_sk = sk; if !key.is_empty() { key = pk; - } else { - std::env::set_var("KEY_FOR_API", pk); } } if !key.is_empty() { log::info!("Key: {}", key); - std::env::set_var("KEY_FOR_API", key.clone()); } (key, out_sk) }