remove useless KEY_FOR_API

This commit is contained in:
rustdesk 2024-05-26 21:43:13 +08:00
parent 5078a1f797
commit e40994d62e

View File

@ -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)
}