diff options
author | Roland Walker <walker@pobox.com> | 2021-01-15 10:10:41 -0500 |
---|---|---|
committer | Roland Walker <walker@pobox.com> | 2021-01-15 10:13:22 -0500 |
commit | b882ac3acf7ea04deded8857cf1e85ffe3735460 (patch) | |
tree | 1b295ee1e4170a4f2586a81075e7af6cecef10e9 | |
parent | a252ba02c57c75e6c5da8b4a3e11bf24833bc765 (diff) |
allow --host without --port to make TCP connection
-rw-r--r-- | changelog.md | 9 | ||||
-rwxr-xr-x | mycli/main.py | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md index acf434b..eb37445 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,11 @@ -TBD +1.23.1 +=== + +Bug Fixes: +---------- +* Allow `--host` without `--port` to make a TCP connection. + +1.23.0 === Features: diff --git a/mycli/main.py b/mycli/main.py index cbc1858..7c3c3d6 100755 --- a/mycli/main.py +++ b/mycli/main.py @@ -391,7 +391,7 @@ class MyCli(object): database = database or cnf['database'] # Socket interface not supported for SSH connections - if (port and host) or (ssh_host and ssh_port): + if port or (host and host != 'localhost') or (ssh_host and ssh_port): socket = '' else: socket = socket or cnf['socket'] or guess_socket_location() |