Browse Source

raw port

raw
pull/3428/head
Daniel Gibbs 4 years ago
parent
commit
43b8443801
  1. 16
      lgsm/functions/command_dev_query_raw.sh
  2. 1
      lgsm/functions/info_parms.sh

16
lgsm/functions/command_dev_query_raw.sh

@ -59,17 +59,23 @@ fi
if [ -v steamport ]; then if [ -v steamport ]; then
echo -e "Steam:\t${steamport}\t$(ss -tupl|grep ${steamport}|wc -l)\t$(ss -tupl|grep ${steamport}|grep tcp|awk '{ print $2 }')\t$(ss -tupl|grep ${steamport}|grep udp|awk '{ print $2 }')" echo -e "Steam:\t${steamport}\t$(ss -tupl|grep ${steamport}|wc -l)\t$(ss -tupl|grep ${steamport}|grep tcp|awk '{ print $2 }')\t$(ss -tupl|grep ${steamport}|grep udp|awk '{ print $2 }')"
else else
echo -e "HTTP:\tN/A" echo -e "Steam:\tN/A"
fi
if [ -v rawport ]; then
echo -e "Raw UDP:\t${rawport}\t$(ss -tupl|grep ${rawport}|wc -l)\t$(ss -tupl|grep ${rawport}|grep tcp|awk '{ print $2 }')\t$(ss -tupl|grep ${rawport}|grep udp|awk '{ print $2 }')"
else
echo -e "Raw UDP:\tN/A"
fi fi
} | column -s $'\t' -t } | column -s $'\t' -t
echo -e "" echo -e ""
echo -e "${lightgreen}Ports Raw Output${default}"
echo -e "================================="
ss -tupl
echo -e ""
echo -e "${lightgreen}Query Port - Raw Output${default}" echo -e "${lightgreen}Query Port - Raw Output${default}"
echo -e "==================================================================" echo -e "=================================================================="
echo -e "================================="
echo -e "${lightgreen}Ports${default}"
echo -e "================================="
echo -e "" echo -e ""
echo -e "PORT: ${port}" echo -e "PORT: ${port}"
echo -e "QUERY PORT: ${queryport}" echo -e "QUERY PORT: ${queryport}"

1
lgsm/functions/info_parms.sh

@ -20,6 +20,7 @@ fn_info_parms_ark(){
port=${port:-"0"} port=${port:-"0"}
queryport=${queryport:-"0"} queryport=${queryport:-"0"}
rconport=${rconport:-"0"} rconport=${rconport:-"0"}
rawport=$((port+1))
maxplayers=${maxplayers:-"0"} maxplayers=${maxplayers:-"0"}
} }

Loading…
Cancel
Save