Browse Source

remove irrelevant entry for Squad details, read RCON port from cfg file

pull/1449/head
Scarsz 8 years ago
parent
commit
1b38006b9d
  1. 5
      lgsm/functions/command_details.sh

5
lgsm/functions/command_details.sh

@ -662,15 +662,12 @@ fn_details_spark(){
}
fn_details_squad(){
rconport=$(cat ${servercfgdir}/Rcon.cfg | grep "Port=" | cut -c6-) # obtain rcon port from file
echo -e "netstat -atunp | grep SquadServer"
echo -e ""
{
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
echo -e "> Game\tINBOUND\t${port}\tudp"
# Don't do arithmetics if ever the port wasn't a numeric value
if [ "${port}" -eq "${port}" ]; then
echo -e "> RAW\tINBOUND\t$((port+1))\tudp"
fi
echo -e "> Query\tINBOUND\t${queryport}\tudp"
echo -e "> RCON\tINBOUND\t${rconport}\ttcp"
} | column -s $'\t' -t

Loading…
Cancel
Save