Correct port handling for 7d2d
This commit is contained in:
parent
f80c626bbd
commit
d884bb2cf8
@ -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}")"
|
||||
|
Loading…
Reference in New Issue
Block a user