File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/com/github/dockerjava/netty Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 125125
126126import org .bouncycastle .jce .provider .BouncyCastleProvider ;
127127
128+ import unisockets .Addr ;
129+
128130import javax .net .ssl .SSLContext ;
129131import javax .net .ssl .SSLEngine ;
130132import javax .net .ssl .SSLParameters ;
@@ -254,7 +256,10 @@ protected void initChannel(final SocketChannel channel) throws Exception {
254256
255257 @ Override
256258 public DuplexChannel connect (Bootstrap bootstrap ) throws InterruptedException {
257- return (DuplexChannel ) bootstrap .connect (new DomainSocketAddress ("/var/run/docker.sock" )).sync ().channel ();
259+
260+ Addr addr = Addr .apply (new java .io .File ("/var/run/docker.sock" ));
261+
262+ return (DuplexChannel ) bootstrap .connect (addr ).sync ().channel ();
258263 }
259264 }
260265
You can’t perform that action at this time.
0 commit comments