Skip to content

Commit 95797d6

Browse files
committed
nit
1 parent 330f2d5 commit 95797d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/main/java/org/asynchttpclient/netty/channel/ChannelManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public SslHandler addSslHandler(ChannelPipeline pipeline, Uri uri, String virtua
383383
if (hasSocksProxyHandler)
384384
pipeline.addAfter(SOCKS_HANDLER, SSL_HANDLER, sslHandler);
385385
else
386-
pipeline.addFirst(SSL_HANDLER, sslHandler);
386+
pipeline.addAfter(PINNED_ENTRY, SSL_HANDLER, sslHandler);
387387
return sslHandler;
388388
}
389389

@@ -423,7 +423,7 @@ protected void initChannel(Channel channel) throws Exception {
423423
default:
424424
throw new IllegalArgumentException("Only SOCKS4 and SOCKS5 supported at the moment.");
425425
}
426-
channel.pipeline().addFirst(SOCKS_HANDLER, socksProxyHandler);
426+
channel.pipeline().addAfter(PINNED_ENTRY, SOCKS_HANDLER, socksProxyHandler);
427427
}
428428
});
429429
promise.setSuccess(socksBootstrap);

0 commit comments

Comments
 (0)