From 6307759d655d99db0eb92f4c1ee465e459097ed1 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 12 Jun 2021 20:00:34 +0100 Subject: [PATCH] added extra query ports for ts3 a --- lgsm/functions/info_config.sh | 10 ++++++++++ lgsm/functions/info_messages.sh | 9 ++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/lgsm/functions/info_config.sh b/lgsm/functions/info_config.sh index 5280c01e2..c66b37abc 100755 --- a/lgsm/functions/info_config.sh +++ b/lgsm/functions/info_config.sh @@ -903,11 +903,17 @@ fn_info_config_teamspeak3(){ dbplugin="${unavailable}" port="9987" queryport="10011" + querysshport="10022" + queryhttpport="10080" + queryhttpsport="10443" fileport="30033" else dbplugin=$(grep "dbplugin=" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/dbplugin=//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//') port=$(grep "default_voice_port" "${servercfgfullpath}" | tr -cd '[:digit:]') queryport=$(grep "query_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') + querysshport=$(grep "query_ssh_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') + queryhttpport=$(grep "query_http_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') + queryhttpsport=$(grep "query_https_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') fileport=$(grep "filetransfer_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') configip=$(grep "voice_ip" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/voice_ip//g' | sed 's/,.*//' | tr -d '=\";,' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//') @@ -915,8 +921,12 @@ fn_info_config_teamspeak3(){ ipinconfigvar="voice_ip" # Not Set + dbplugin=${dbplugin:-"NOT SET"} port=${port:-"9987"} queryport=${queryport:-"10011"} + querysshport=${querysshport:-"10022"} + queryhttpport=${queryhttpport:-"10080"} + queryhttpsport=${queryhttpsport:-"10443"} fileport=${fileport:-"30033"} fi } diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index 32cf4363b..3bd783f20 100755 --- a/lgsm/functions/info_messages.sh +++ b/lgsm/functions/info_messages.sh @@ -1253,9 +1253,12 @@ fn_info_message_stationeers(){ fn_info_message_teamspeak3(){ { fn_port "header" - echo -e "> Voice\t${port}\tudp" - echo -e "> ServerQuery\t${queryport}\ttcp" - echo -e "> File transfer\t${fileport}\ttcp" + fn_port "Voice" port udp + fn_port "Query" queryport tcp + fn_port "Query (SSH)" querysshport tcp + fn_port "Query (http)" queryhttpport tcp + fn_port "Query (https)" queryhttpsport tcp + fn_port "File Transfer" fileport tcp } | column -s $'\t' -t }