diff --git a/src/cli.rs b/src/cli.rs index f8527c99c..117486ee4 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -73,8 +73,7 @@ impl Interface for Session { async fn handle_hash(&mut self, pass: &str, hash: Hash, peer: &mut Stream) { log::info!( - "id={}, password={}", - crate::ipc::get_id(), + "password={}", hbb_common::password_security::temporary_password() ); handle_hash(self.lc.clone(), &pass, hash, self, peer).await; diff --git a/src/main.rs b/src/main.rs index 67ddb875f..6500a8e4a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -91,6 +91,7 @@ fn main() { let token = LocalConfig::get_option("access_token"); cli::connect_test(p, key, token); } else if let Some(p) = matches.value_of("server") { + log::info!("id={}", hbb_common::config::Config::get_id()); crate::start_server(true); } common::global_clean();