smongiar commented on code in PR #22835:
URL: https://github.com/apache/camel/pull/22835#discussion_r3161530765


##########
dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/Hawtio.java:
##########
@@ -116,14 +120,16 @@ protected Integer callHawtio() throws Exception {
                 Object hawt = clazz.getDeclaredConstructor().newInstance();
                 Method m = clazz.getMethod("setWar", String.class);
                 ObjectHelper.invokeMethod(m, hawt, war);
+                m = clazz.getMethod("setHost", String.class);
+                ObjectHelper.invokeMethod(m, hawt, host);
                 m = clazz.getMethod("setPort", Integer.class);
                 ObjectHelper.invokeMethod(m, hawt, port);
                 m = clazz.getMethod("run");
                 ObjectHelper.invokeMethod(m, hawt);
 
                 if (openUrl) {
                     // open web browser
-                    String url = "http://localhost:"; + port + "/hawtio";
+                    String url = "http://"; + host + ":" + port + "/hawtio";

Review Comment:
   That's ok, it's related to IPv6 resolution issue



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to