From d884bb2cf806edb57f4f9adfa2c7b9ecd7333c9a Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 1 Jan 2022 17:18:34 -0600 Subject: [PATCH] Correct port handling for 7d2d --- Scripts/7D2D-Manage.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/7D2D-Manage.bash b/Scripts/7D2D-Manage.bash index 525310b..9666bab 100644 --- a/Scripts/7D2D-Manage.bash +++ b/Scripts/7D2D-Manage.bash @@ -226,11 +226,11 @@ start_server() { local telnet_port local allocs_port # This multiplication gives us 5 available ports for this server, safely allows us to block off ports efficiently - server_port="$((PRIMARY_START_PORT_RANGE + $(("${server_id}" * 6))))" + server_port="$((PRIMARY_START_PORT_RANGE + $(("${server_id}" * 7))))" server_port="${SERVER_PORT:-$server_port}" - telnet_port="$((server_port + 2))" - allocs_port="$((server_port + 3))" + telnet_port="$((server_port + 4))" + allocs_port="$((server_port + 5))" telnet_port="${TELNET_PORT:-$telnet_port}" log "info" "Generating a few required directories in $(important "${server_directory}")"