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

nicoloboschi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new fe5bbfe6b1 fix: bookie http endpoint info always return 0.0.0.0 (#4325)
fe5bbfe6b1 is described below

commit fe5bbfe6b12621cdb5b7433acf320c1e5f20b745
Author: Nicolò Boschi <[email protected]>
AuthorDate: Tue Apr 30 15:15:46 2024 +0200

    fix: bookie http endpoint info always return 0.0.0.0 (#4325)
---
 .../src/main/java/org/apache/bookkeeper/server/service/HttpService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/server/service/HttpService.java
 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/server/service/HttpService.java
index 2173b756b9..cee00f84c9 100644
--- 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/server/service/HttpService.java
+++ 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/server/service/HttpService.java
@@ -77,7 +77,7 @@ public class HttpService extends ServerLifecycleComponent {
         if (conf.getServerConf().isHttpServerEnabled()) {
             EndpointInfo endpoint = new EndpointInfo("httpserver",
                     conf.getServerConf().getHttpServerPort(),
-                    "0.0.0.0",
+                    conf.getServerConf().getHttpServerHost(),
                     "http", null, null);
             componentInfoPublisher.publishEndpoint(endpoint);
         }

Reply via email to