Browse Source

bt1944

pull/3428/head
Daniel Gibbs 4 years ago
parent
commit
6db7c931e7
  1. 2
      lgsm/functions/command_monitor.sh
  2. 9
      lgsm/functions/info_messages.sh
  3. 1
      lgsm/functions/info_parms.sh

2
lgsm/functions/command_monitor.sh

@ -74,12 +74,10 @@ fn_monitor_check_queryport(){
fn_script_log_info "Checking port: CHECKING" fn_script_log_info "Checking port: CHECKING"
if [ -n "${rconenabled}" ]&&[ "${rconenabled}" != "true" ]&&[ ${shortname} == "av" ]; then if [ -n "${rconenabled}" ]&&[ "${rconenabled}" != "true" ]&&[ ${shortname} == "av" ]; then
fn_print_warn "Checking port: Unable to query, rcon is not enabled" fn_print_warn "Checking port: Unable to query, rcon is not enabled"
fn_print_warn_eol_nl
fn_script_log_warn "Checking port: Unable to query, rcon is not enabled" fn_script_log_warn "Checking port: Unable to query, rcon is not enabled"
else else
fn_print_error "Checking port: Unable to query, queryport is not set" fn_print_error "Checking port: Unable to query, queryport is not set"
fn_script_log_error "Checking port: Unable to query, queryport is not set" fn_script_log_error "Checking port: Unable to query, queryport is not set"
fn_print_error_eol_nl
fi fi
core_exit.sh core_exit.sh
fi fi

9
lgsm/functions/info_messages.sh

@ -773,10 +773,9 @@ fn_info_message_bo(){
fn_info_message_bt1944(){ fn_info_message_bt1944(){
{ {
echo -e "${lightblue}DESCRIPTION\tPORT\tPROTOCOL\tLISTEN${default}" echo -e "${lightblue}DESCRIPTION\tPORT\tPROTOCOL\tLISTEN${default}"
echo -e "> Game\t${port}\tudp" echo -e "Game\t${port}\tudp\t$(echo "${ssinfo}" | grep ${port} | wc -l)"
echo -e "> Steam\t${steamport}\tudp" echo -e "Query\t${queryport}\tudp\t$(echo "${ssinfo}" | grep ${queryport} | wc -l)"
echo -e "> RCON\t${rconport}\ttcp" echo -e "RCON\t${rconport}\ttcp\t$(echo "${ssinfo}" | grep ${rconport} | wc -l)"
echo -e "> Query\t${queryport}\tudp"
} | column -s $'\t' -t } | column -s $'\t' -t
} }
@ -1401,7 +1400,7 @@ fn_info_message_col(){
{ {
echo -e "${lightblue}DESCRIPTION\tPORT\tPROTOCOL\tLISTEN${default}" echo -e "${lightblue}DESCRIPTION\tPORT\tPROTOCOL\tLISTEN${default}"
echo -e "Game\t${port}\ttcp/udp\t$(echo "${ssinfo}" | grep ${port} | wc -l)" echo -e "Game\t${port}\ttcp/udp\t$(echo "${ssinfo}" | grep ${port} | wc -l)"
echo -e "Steam\t${steamport}\tudp\t$(echo "${ssinfo}" | grep ${steamport} | wc -l)" echo -e "Steam\t${steamport}\ttcp\t$(echo "${ssinfo}" | grep ${steamport} | wc -l)"
} | column -s $'\t' -t } | column -s $'\t' -t
} }

1
lgsm/functions/info_parms.sh

@ -31,7 +31,6 @@ fn_info_parms_barotrauma(){
fn_info_parms_bt1944(){ fn_info_parms_bt1944(){
port=${port:-"0"} port=${port:-"0"}
steamport=$((port+1))
rconport=$((port+2)) rconport=$((port+2))
queryport=${queryport:-"0"} queryport=${queryport:-"0"}
} }

Loading…
Cancel
Save