From 67e98df3e8bc22824c431c74e9c7786be4452231 Mon Sep 17 00:00:00 2001 From: Fouad Almalki Date: Sun, 5 May 2024 23:17:56 +0300 Subject: [PATCH] Add note for default HTTP host in WSL --- .../java/io/quarkus/vertx/http/runtime/HttpConfiguration.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/HttpConfiguration.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/HttpConfiguration.java index d7b8c233b5de6..66ddb0fe202fb 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/HttpConfiguration.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/HttpConfiguration.java @@ -45,6 +45,10 @@ public class HttpConfiguration { * Defaulting to 0.0.0.0 makes it easier to deploy Quarkus to container, however it * is not suitable for dev/test mode as other people on the network can connect to your * development machine. + *

+ * As an exception, when running in Windows Subsystem for Linux (WSL), the HTTP host + * defaults to 0.0.0.0 even in dev/test mode since using localhost makes the application + * inaccessible. */ @ConfigItem public String host;