Fix Docker socket creation on Windows

Closes gh-19908
This commit is contained in:
Stephane Nicoll 2020-01-27 07:10:32 +01:00
parent 3b1745173b
commit 3290313eb7

View File

@ -43,7 +43,7 @@ class DockerConnectionSocketFactory implements ConnectionSocketFactory {
@Override
public Socket createSocket(HttpContext context) throws IOException {
if (Platform.isWindows()) {
NamedPipeSocket.get(WINDOWS_NAMED_PIPE_PATH);
return NamedPipeSocket.get(WINDOWS_NAMED_PIPE_PATH);
}
return DomainSocket.get(DOMAIN_SOCKET_PATH);
}