mirror of
https://github.com/bitwarden/browser
synced 2026-02-07 20:24:01 +00:00
Apply feedback
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user