Browse Source

pvr gameport+400

pull/3428/head
Daniel Gibbs 4 years ago
parent
commit
40b4b9809f
  1. 6
      lgsm/functions/command_dev_query_raw.sh
  2. 12
      lgsm/functions/info_messages.sh
  3. 1
      lgsm/functions/info_parms.sh

6
lgsm/functions/command_dev_query_raw.sh

@ -53,6 +53,12 @@ if [ "${shortname}" == "rw" ]; then
fi fi
fi fi
if [ -v port401 ]; then
echo -e "Game+400: \t${port401} \t$(ss -tupl|grep ${port401}|wc -l) \t$(ss -tupl|grep ${port401}|grep tcp|awk '{ print $2 }') \t$(ss -tupl|grep ${port401}|grep udp|awk '{ print $2 }')"
else
echo -e "Game+400:"
fi
if [ -v portipv6 ]; then if [ -v portipv6 ]; then
echo -e "Game ipv6: \t${portipv6} \t$(ss -tupl|grep ${portipv6}|wc -l) \t$(ss -tupl|grep ${portipv6}|grep tcp|awk '{ print $2 }') \t$(ss -tupl|grep ${portipv6}|grep udp|awk '{ print $2 }')" echo -e "Game ipv6: \t${portipv6} \t$(ss -tupl|grep ${portipv6}|wc -l) \t$(ss -tupl|grep ${portipv6}|grep tcp|awk '{ print $2 }') \t$(ss -tupl|grep ${portipv6}|grep udp|awk '{ print $2 }')"
else else

12
lgsm/functions/info_messages.sh

@ -1472,16 +1472,18 @@ fn_info_message_soldat(){
fn_info_message_warfork(){ fn_info_message_warfork(){
{ {
fn_port "header" fn_port "header"
fn_port "Game" port udp fn_port "Game" port udp
fn_port "HTTP" httpport tcp fn_port "HTTP" httpport tcp
} | column -s $'\t' -t } | column -s $'\t' -t
} }
fn_info_message_pavlovvr(){ fn_info_message_pavlovvr(){
{ {
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL" fn_port "header"
echo -e "> Game\t${port}\tudp" fn_port "Game" port udp
echo -e "> Game\t$((port+400))\tudp" fn_port "Game" port tcp
fn_port "Game +400" port401 udp
fn_port "Query" queryport tcp
} | column -s $'\t' -t } | column -s $'\t' -t
} }

1
lgsm/functions/info_parms.sh

@ -230,6 +230,7 @@ fn_info_parms_teeworlds(){
fn_info_parms_pavlovvr(){ fn_info_parms_pavlovvr(){
port=${port:-"0"} port=${port:-"0"}
port401=$((port+400))
queryport=${port:-"0"} queryport=${port:-"0"}
} }

Loading…
Cancel
Save