Fix netty latest dep test failure (#13649)
This commit is contained in:
parent
78772ea3fa
commit
ffa4f5c5e7
|
@ -79,7 +79,7 @@ class Netty41ClientSslTest {
|
|||
ChannelPipeline pipeline = socketChannel.pipeline();
|
||||
|
||||
SslContext sslContext = SslContextBuilder.forClient().build();
|
||||
SSLEngine sslEngine = sslContext.newEngine(socketChannel.alloc());
|
||||
SSLEngine sslEngine = sslContext.newEngine(socketChannel.alloc(), "localhost", -1);
|
||||
if (enabledProtocols != null) {
|
||||
sslEngine.setEnabledProtocols(enabledProtocols.toArray(new String[0]));
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ public class Netty41ClientExtension implements BeforeAllCallback, AfterAllCallba
|
|||
ChannelPipeline pipeline = socketChannel.pipeline();
|
||||
if (https) {
|
||||
SslContext sslContext = SslContextBuilder.forClient().build();
|
||||
pipeline.addLast(sslContext.newHandler(socketChannel.alloc()));
|
||||
pipeline.addLast(sslContext.newHandler(socketChannel.alloc(), "localhost", -1));
|
||||
}
|
||||
if (readTimeout) {
|
||||
pipeline.addLast(
|
||||
|
|
Loading…
Reference in New Issue