Skip to content

Commit

Permalink
fix params to properly set port
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Feb 24, 2023
1 parent 3484e8e commit e37a2af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset/extensions/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ def create_tunnel(
) -> 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,),
Expand Down

0 comments on commit e37a2af

Please sign in to comment.