Skip to content

Commit

Permalink
Don't try to connect to socket over SSH
Browse files Browse the repository at this point in the history
  • Loading branch information
gfrlv committed May 23, 2020
1 parent a3cf82a commit 977e409
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mycli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ def connect(self, database='', user='', passwd='', host='', port='',
# Fall back to config values only if user did not specify a value.

database = database or cnf['database']
if port or host:
# Socket interface not supported for SSH connections
if port or host or ssh_host or ssh_port:
socket = ''
else:
socket = socket or cnf['socket'] or guess_socket_location()
Expand Down

0 comments on commit 977e409

Please sign in to comment.