Add ability to use any remote console port when using network mode host (#683)

This commit is contained in:
Eric-Meier authored and GitHub committed 2026-09-22 07:04:39 -05:00
1 parent 2201549828
commit adc2bbf5ff
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -497,6 +497,9 @@ fi
mcServerRunnerArgs=()
if isTrue "${ENABLE_SSH}"; then
mcServerRunnerArgs+=(--remote-console)
if [[ -v REMOTE_CONSOLE_BIND_ADDRESS ]]; then
mcServerRunnerArgs+=(--remote-console-bind-address "${REMOTE_CONSOLE_BIND_ADDRESS}")
fi
if ! [[ -v RCON_PASSWORD ]]; then
RCON_PASSWORD=$(openssl rand -hex 12)
export RCON_PASSWORD