Skip to content

Commit

Permalink
Use SslHandler#isEncrypted(ByteBuf, boolean) instead of the deprecate…
Browse files Browse the repository at this point in the history
…d SslHandler#isEncrypted(ByteBuf)
  • Loading branch information
violetagg committed Nov 27, 2024
1 parent efdc0cd commit ecea19c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 VMware, Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2021-2024 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -56,7 +56,7 @@ protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {
return;
}
ChannelPipeline pipeline = ctx.pipeline();
if (SslHandler.isEncrypted(in)) {
if (SslHandler.isEncrypted(in, false)) {
sslProvider.addSslHandler(ctx.channel(), remoteAddress, sslDebug);
}
else {
Expand Down

0 comments on commit ecea19c

Please sign in to comment.