Show accessAddress in bold yellow on startup

This should make it easier to help people troubleshoot networked setups.
Consider telling people to try connecting to the address with a web browser on the client's machine.
This commit is contained in:
AnimeGitB
2022-08-25 21:37:49 +09:30
parent f5c8959688
commit 6d65b71512
11 changed files with 20 additions and 2 deletions

View File

@@ -253,7 +253,7 @@ public final class GameServer extends KcpServer {
}
}, new Date(), 1000L);
Grasscutter.getLogger().info(translate("messages.status.free_software"));
Grasscutter.getLogger().info(translate("messages.game.port_bind", Integer.toString(address.getPort())));
Grasscutter.getLogger().info(translate("messages.game.address_bind", GAME_INFO.accessAddress, address.getPort()));
ServerStartEvent event = new ServerStartEvent(ServerEvent.Type.GAME, OffsetDateTime.now());
event.call();
}

View File

@@ -137,7 +137,7 @@ public final class HttpServer {
}
// Log bind information.
Grasscutter.getLogger().info(translate("messages.dispatch.port_bind", Integer.toString(this.express.raw().port())));
Grasscutter.getLogger().info(translate("messages.dispatch.address_bind", HTTP_INFO.accessAddress, this.express.raw().port()));
}
/**