Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Dec 18, 2024
1 parent 6ab4ffa commit 93d3fa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/http_clients_cache/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl HttpClientResolver<my_ssh::SshAsyncChannel, SshHttpConnector> for SshHttpCl
.get_or_create(ssh_credentials)
.await;

let remote_endpoint = url_builder.get_remote_endpoint(80); //todo!("Detect 80 or 443 according to schemes")
let remote_endpoint = url_builder.get_remote_endpoint(None);

let connector = SshHttpConnector {
ssh_session,
Expand Down Expand Up @@ -53,7 +53,7 @@ impl HttpClientResolver<my_ssh::SshAsyncChannel, SshHttpConnector> for HttpClien
client_certificate: Option<&ClientCertificate>,
ssh_credentials: Option<&Arc<my_ssh::SshCredentials>>,
) -> Arc<MyHttpClient<my_ssh::SshAsyncChannel, SshHttpConnector>> {
let remote_endpoint = url_builder.get_remote_endpoint(80); //todo!("Detect 80 or 443 according to schemes")
let remote_endpoint = url_builder.get_remote_endpoint(None);
let hash_map_key = get_ssh_key(ssh_credentials.unwrap(), remote_endpoint);
let mut write_access = self.inner.write().await;

Expand Down Expand Up @@ -82,7 +82,7 @@ impl HttpClientResolver<my_ssh::SshAsyncChannel, SshHttpConnector> for HttpClien
url_builder: &UrlBuilder,
ssh_credentials: Option<&Arc<my_ssh::SshCredentials>>,
) {
let remote_endpoint = url_builder.get_remote_endpoint(80); //todo!("Detect 80 or 443 according to schemes")
let remote_endpoint = url_builder.get_remote_endpoint(None);
let ssh_credentials = ssh_credentials.unwrap();
let hash_map_key = get_ssh_key(ssh_credentials, remote_endpoint);
let mut write_access = self.inner.write().await;
Expand Down

0 comments on commit 93d3fa5

Please sign in to comment.