Fixed - Redisson should use hostname from uri in SSL #5510

pull/5520/head
Nikita Koksharov 1 year ago
parent f171ecf628
commit 62d7dbbf3f

@ -179,7 +179,7 @@ public class RedisChannelInitializer extends ChannelInitializer<Channel> {
SslContext sslContext = sslContextBuilder.build();
String hostname = config.getSslHostname();
if (hostname == null || NetUtil.createByteArrayFromIpAddressString(hostname) != null) {
hostname = redisClient.getAddr().getHostName();
hostname = config.getAddress().getHost();
}
SSLEngine sslEngine = sslContext.newEngine(ch.alloc(), hostname, config.getAddress().getPort());

Loading…
Cancel
Save