From f80c626bbd6712d4283e438b88ce91dcd058de17 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 1 Jan 2022 17:16:36 -0600 Subject: [PATCH] Reserve 6 ports instead of 5 per game server --- Scripts/7D2D-Manage.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/7D2D-Manage.bash b/Scripts/7D2D-Manage.bash index 0e04b79..525310b 100644 --- a/Scripts/7D2D-Manage.bash +++ b/Scripts/7D2D-Manage.bash @@ -226,7 +226,7 @@ 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}" * 5))))" + server_port="$((PRIMARY_START_PORT_RANGE + $(("${server_id}" * 6))))" server_port="${SERVER_PORT:-$server_port}" telnet_port="$((server_port + 2))"