Skip to content

Commit

Permalink
remove useless KEY_FOR_API
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk committed May 26, 2024
1 parent 5078a1f commit e40994d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/rendezvous_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e40994d

Please sign in to comment.