1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 20:24:01 +00:00

Apply feedback

This commit is contained in:
Bernd Schoolmann
2025-10-31 13:43:51 +01:00
parent 8887b6a2a8
commit 7812458221
2 changed files with 2 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ async fn handle_connection(
}
Request::SessionBind(request) => {
span.in_scope(|| info!("Received SessionBind {:?}", request));
connection.set_host_key(request.host_key().clone());
connection.set_host_key(request.host_key());
info!(
"Bound connection {} to host {:?}",
connection.id(),

View File

@@ -57,7 +57,7 @@ impl ConnectionInfo {
self.host_name.as_ref()
}
pub fn set_host_key(&mut self, host_key: PublicKey) {
pub fn set_host_key(&mut self, host_key: &PublicKey) {
self.host_key = Some(host_key.clone());
// Some systems (flatpak, macos sandbox) may prevent access to the known hosts file.
if let Ok(hosts) = knownhosts::KnownHostsReader::read_default() {