Closed idelpivnitskiy closed 3 months ago
Motivation:
In version 4.2.x, Netty introduced new API SslContextBuilder.endpointIdentificationAlgorithm(String) and flipped the default value to HTTPS.
SslContextBuilder.endpointIdentificationAlgorithm(String)
HTTPS
Modifications:
config.hostnameVerificationAlgorithm()
isOptionSupported
MethodHandle
Result:
Hostname verification algorithm is enabled/disabled as expected for ST users with Netty 4.2.x in the classpath.
Correct, I left that intentionally as a fallback for Netty 4.1.x
Motivation:
In version 4.2.x, Netty introduced new API
SslContextBuilder.endpointIdentificationAlgorithm(String)
and flipped the default value toHTTPS
.Modifications:
config.hostnameVerificationAlgorithm()
.isOptionSupported
method works as expected before initializing itsMethodHandle
.Result:
Hostname verification algorithm is enabled/disabled as expected for ST users with Netty 4.2.x in the classpath.