fix(sshtunnel): argument params to properly setting server_port (#23196)

This commit is contained in:
Hugh A. Miles II 2023-02-24 14:32:26 -08:00 committed by GitHub
parent 218de6e6a4
commit 196e3eac8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,8 +51,7 @@ class SSHManager:
) -> SSHTunnelForwarder:
url = make_url_safe(sqlalchemy_database_uri)
params = {
"ssh_address_or_host": ssh_tunnel.server_address,
"ssh_port": ssh_tunnel.server_port,
"ssh_address_or_host": (ssh_tunnel.server_address, ssh_tunnel.server_port),
"ssh_username": ssh_tunnel.username,
"remote_bind_address": (url.host, url.port), # bind_port, bind_host
"local_bind_address": (self.local_bind_address,),