You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by sh...@apache.org on 2024/05/25 02:28:17 UTC
(bookkeeper) 03/03: fix: bookie http endpoint info always return 0.0.0.0 (#4325)
This is an automated email from the ASF dual-hosted git repository.
shoothzj pushed a commit to branch branch-4.17
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
commit 061a73dbce060a891905f90dee5173e8e01033e4
Author: Nicolò Boschi <bo...@gmail.com>
AuthorDate: Tue Apr 30 15:15:46 2024 +0200
fix: bookie http endpoint info always return 0.0.0.0 (#4325)
(cherry picked from commit fe5bbfe6b12621cdb5b7433acf320c1e5f20b745)
---
.../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);
}