Skip to content

Commit

Permalink
fix empty key issue
Browse files Browse the repository at this point in the history
  • Loading branch information
natfrp-bot committed Aug 22, 2023
1 parent e71ee19 commit 494d788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ pub async fn get_key(sync: bool) -> String {
let mut options = crate::ipc::get_options_async().await;
options.remove("key").unwrap_or_default()
};
if key.is_empty() && !option_env!("RENDEZVOUS_SERVER").unwrap_or("").is_empty() {
if key.is_empty() {
key = config::RS_PUB_KEY.to_owned();
}
key
Expand Down

0 comments on commit 494d788

Please sign in to comment.