File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,14 @@ private static Server findAvailableSecurePort(CertificateManager certManager) {
144144 try {
145145 // Bind the secure socket on the proper port number (i.e. 8181), add it as an additional connector
146146 SslConnectionFactory sslConnection = new SslConnectionFactory (certManager .configureSslContextFactory (), HttpVersion .HTTP_1_1 .asString ());
147- HttpConnectionFactory httpConnection = new HttpConnectionFactory (new HttpConfiguration ());
147+
148+ // Disable SNI checks for easier print-server testing (replicates Jetty 9.x behavior)
149+ HttpConfiguration httpsConfig = new HttpConfiguration ();
150+ SecureRequestCustomizer customizer = new SecureRequestCustomizer ();
151+ customizer .setSniHostCheck (false );
152+ httpsConfig .addCustomizer (customizer );
153+
154+ HttpConnectionFactory httpConnection = new HttpConnectionFactory (httpsConfig );
148155
149156 ServerConnector secureConnector = new ServerConnector (server , sslConnection , httpConnection );
150157 secureConnector .setHost (certManager .getProperties ().getProperty ("wss.host" ));
You can’t perform that action at this time.
0 commit comments