Reserve 6 ports instead of 5 per game server

This commit is contained in:
Price Hiller 2022-01-01 17:16:36 -06:00
parent 9733b0be33
commit f80c626bbd

View File

@ -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))"