Skip to content

Commit 977e409

Browse files
committed
Don't try to connect to socket over SSH
1 parent a3cf82a commit 977e409

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mycli/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ def connect(self, database='', user='', passwd='', host='', port='',
383383
# Fall back to config values only if user did not specify a value.
384384

385385
database = database or cnf['database']
386-
if port or host:
386+
# Socket interface not supported for SSH connections
387+
if port or host or ssh_host or ssh_port:
387388
socket = ''
388389
else:
389390
socket = socket or cnf['socket'] or guess_socket_location()

0 commit comments

Comments
 (0)