Reserve 6 ports instead of 5 per game server
This commit is contained in:
parent
9733b0be33
commit
f80c626bbd
@ -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))"
|
||||
|
Loading…
Reference in New Issue
Block a user