Skip to content

Commit 8415919

Browse files
committed
Merge pull request docker-java#586 from loganbruns/always_use_http_to_contact_proxy_master
Always use HTTP to connect to proxy even when proxying HTTPS
2 parents 0758623 + 4ac56af commit 8415919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/dockerjava/jaxrs/DockerCmdExecFactoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private void configureProxy(ClientConfig clientConfig, String protocol) {
231231
String hostname = address.getHostName();
232232
int port = address.getPort();
233233

234-
clientConfig.property(ClientProperties.PROXY_URI, protocol + "://" + hostname + ":" + port);
234+
clientConfig.property(ClientProperties.PROXY_URI, "http://" + hostname + ":" + port);
235235

236236
String httpProxyUser = System.getProperty(protocol + ".proxyUser");
237237
if (httpProxyUser != null) {

0 commit comments

Comments
 (0)