Correct port handling
This commit is contained in:
parent
cf8948bce5
commit
9733b0be33
@ -211,7 +211,7 @@ start_server() {
|
||||
server_directory="${BASE_DIR}/${server_name}"
|
||||
server_config="${server_directory}/serverconfig.xml"
|
||||
server_save_dir="${server_directory}/Saves/"
|
||||
server_userdata_dir="${server_directory}/UserData"
|
||||
server_userdata_dir="${server_directory}/UserData/"
|
||||
server_mods_dir="${server_directory}/Mods"
|
||||
prefix="7D2D"
|
||||
server_session_name="${prefix}-${server_name}"
|
||||
@ -229,8 +229,8 @@ start_server() {
|
||||
server_port="$((PRIMARY_START_PORT_RANGE + $(("${server_id}" * 5))))"
|
||||
server_port="${SERVER_PORT:-$server_port}"
|
||||
|
||||
telnet_port="$((server_port + 1))"
|
||||
allocs_port="$((server_port + 2))"
|
||||
telnet_port="$((server_port + 2))"
|
||||
allocs_port="$((server_port + 3))"
|
||||
|
||||
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