This is an automated email from the ASF dual-hosted git repository.

harikrishna-patnala pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.20 by this push:
     new f8a3762f076 do not send jetty version on failure to start (#13744)
f8a3762f076 is described below

commit f8a3762f0767f44f52db2d656208359f9601b5d3
Author: dahn <[email protected]>
AuthorDate: Mon Aug 17 08:57:48 2026 +0200

    do not send jetty version on failure to start (#13744)
    
    Co-authored-by: Daan Hoogland <[email protected]>
---
 .../java/com/cloud/consoleproxy/ConsoleProxyNoVNCServer.java   | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git 
a/services/console-proxy/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyNoVNCServer.java
 
b/services/console-proxy/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyNoVNCServer.java
index 3d94ed26b0b..159c21c0b16 100644
--- 
a/services/console-proxy/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyNoVNCServer.java
+++ 
b/services/console-proxy/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyNoVNCServer.java
@@ -54,9 +54,16 @@ public class ConsoleProxyNoVNCServer {
     }
 
     public ConsoleProxyNoVNCServer() {
-        this.server = new Server(WS_PORT);
+        this.server = new Server();
         ConsoleProxyNoVNCHandler handler = new ConsoleProxyNoVNCHandler();
         this.server.setHandler(handler);
+
+        final HttpConfiguration httpConfig = new HttpConfiguration();
+        httpConfig.setSendServerVersion(false);
+
+        final ServerConnector connector = new ServerConnector(server, new 
HttpConnectionFactory(httpConfig));
+        connector.setPort(WS_PORT);
+        server.addConnector(connector);
     }
 
     public ConsoleProxyNoVNCServer(byte[] ksBits, String ksPassword) {
@@ -68,6 +75,7 @@ public class ConsoleProxyNoVNCServer {
             final HttpConfiguration httpConfig = new HttpConfiguration();
             httpConfig.setSecureScheme("https");
             httpConfig.setSecurePort(WSS_PORT);
+            httpConfig.setSendServerVersion(false);
 
             final HttpConfiguration httpsConfig = new 
HttpConfiguration(httpConfig);
             httpsConfig.addCustomizer(new SecureRequestCustomizer());

Reply via email to