This closes #2054
This commit is contained in:
commit
d5be6111e5
|
@ -625,7 +625,7 @@ public class NettyConnector extends AbstractConnector {
|
|||
@Override
|
||||
public SSLEngine run() {
|
||||
if (verifyHost) {
|
||||
return context.createSSLEngine(host, port);
|
||||
return context.createSSLEngine(sniHost != null ? sniHost : host, port);
|
||||
} else {
|
||||
return context.createSSLEngine();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue