Skip to content

Commit 5ca1495

Browse files
committed
Use null as bind address if not specified
1 parent c55666f commit 5ca1495

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/me/lucko/luckperms/extension/rest/RestExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public RestExtension(LuckPerms luckPerms) {
4343
@Override
4444
public void load() {
4545
int port = RestConfig.getInteger("http.port", 8080);
46-
String address = RestConfig.getString("http.address", "localhost");
46+
String address = RestConfig.getString("http.address", null);
4747

4848
Thread thread = Thread.currentThread();
4949
ClassLoader previousCtxClassLoader = thread.getContextClassLoader();

src/main/java/me/lucko/luckperms/extension/rest/RestServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public RestServer(LuckPerms luckPerms, String address, int port) {
8484
this.setupErrorHandlers(this.app);
8585
this.routesClosable = this.setupRoutes(this.app, luckPerms);
8686

87-
LOGGER.info(String.format("[REST] Startup complete! Listening on http://%s:%d", address, port));
87+
LOGGER.info("[REST] Startup complete! Listening on http://{}:{}", address == null ? "localhost" : address, port);
8888
}
8989

9090
@Override

0 commit comments

Comments
 (0)