Fix bug when TLS is used (#432)

* Fix bug when TLS is used.

* Add HTTP/HTTPS connection test.
This commit is contained in:
Felix Fontein
2022-07-26 08:25:53 +02:00
committed by GitHub
parent 6caaa3a90b
commit 9c5d562c0e
8 changed files with 274 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ def is_using_tls(auth_data):
def get_connect_params(auth_data, fail_function):
if is_using_tls(auth_data):
auth['docker_host'] = auth_data['docker_host'].replace('tcp://', 'https://')
auth_data['docker_host'] = auth_data['docker_host'].replace('tcp://', 'https://')
result = dict(
base_url=auth_data['docker_host'],