aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrustdesk <[email protected]>2024-05-26 21:43:13 +0800
committerrustdesk <[email protected]>2024-05-26 21:43:13 +0800
commite40994d62e5ca066e0b4560a368927bdd21c31b9 (patch)
tree21b63121daa520a320ebd7108a4f23d87808d488
parent5078a1f7971f4b5a507bd7164f1eb960e5195369 (diff)
downloadrustdesk-server-e40994d62e5ca066e0b4560a368927bdd21c31b9.tar.gz
rustdesk-server-e40994d62e5ca066e0b4560a368927bdd21c31b9.zip
remove useless KEY_FOR_API
-rw-r--r--src/rendezvous_server.rs3
1 files changed, 0 insertions, 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)
}