From eb2788ed9e25bdf6ad602c542d66e7deb72640ae Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Fri, 13 Jan 2017 04:54:55 +0100 Subject: [PATCH] Better ARK ports info Will test if ok --- lgsm/functions/command_details.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/command_details.sh b/lgsm/functions/command_details.sh index 3af2b7ac7..20ad29222 100644 --- a/lgsm/functions/command_details.sh +++ b/lgsm/functions/command_details.sh @@ -347,9 +347,14 @@ fn_details_ark(){ echo -e "netstat -atunp | grep ShooterGame" echo -e "" { - echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL\tINI VARIABLE" - echo -e "> Game\tINBOUND\t${port}\tudp\tPort=${port}" + 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\t\INBOUND\t$((port+1))\tudp + fi echo -e "> Query\tINBOUND\t${queryport}\tudp" + echo -e "> RCON\INBOUND\t${rconport}\ttcp" } | column -s $'\t' -t }