Browse Source

integrate ss

pull/3428/head
Daniel Gibbs 4 years ago
parent
commit
f94b40b3ab
  1. 3
      lgsm/functions/info_distro.sh
  2. 16
      lgsm/functions/info_messages.sh
  3. 1
      lgsm/functions/info_parms.sh

3
lgsm/functions/info_distro.sh

@ -288,3 +288,6 @@ if [ "${appid}" ]; then
glibc="2.14"
fi
fi
# Gather Port Info using ss
ssinfo="$(ss -tupl)"

16
lgsm/functions/info_messages.sh

@ -1077,16 +1077,16 @@ fn_info_message_quakelive(){
}
fn_info_message_arma3(){
echo -e " ss -tupl | grep ${executable//.\/}"
echo -e "ss -tupl | grep ${executable//.\/}"
echo -e ""
{
echo -e "${lightblue}DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL${default}"
echo -e "> Game\tINBOUND\t${port}\tudp"
echo -e "> Voice\tINBOUND\t${voiceport}\tudp"
echo -e "> Query Steam\tINBOUND\t${queryport}\tudp"
echo -e "> Steam Master\tINBOUND\t${steammasterport}\tudp"
echo -e "> Voice (unused)\tINBOUND\t${voiceunusedport}\tudp"
echo -e "> BattleEye\tINBOUND\t${battleeyeport}\tudp"
echo -e "${lightblue}DESCRIPTION\tPORT\tPROTOCOL\tSTATUS${default}"
echo -e "Game\t${port}\tudp\t\t$(echo "${ssinfo}" | grep ${port} | wc -l)"
echo -e "Voice\t${voiceport}\tudp\t$(echo "${ssinfo}" | grep ${voiceport}|wc -l)"
echo -e "Query Steam\t${queryport}\tudp\t$(echo "${ssinfo}" | grep ${queryport}|wc -l)"
echo -e "Steam Master\t${steammasterport}\tudp\t$(echo "${ssinfo}" | grep ${steammasterport}|wc -l)"
echo -e "Voice (unused)\t${voiceunusedport}\tudp\t$(echo "${ssinfo}" | grep ${voiceunusedport}|wc -l)"
echo -e "BattleEye\t${battleeyeport}\tudp\t$(echo "${ssinfo}" | grep ${battleeyeport}|wc -l)"
} | column -s $'\t' -t
}

1
lgsm/functions/info_parms.sh

@ -129,7 +129,6 @@ fn_info_parms_arma3(){
steammasterport=$((port+2))
voiceunusedport=$((port+3))
battleeyeport=$((port+4))
}
fn_info_parms_risingworld(){

Loading…
Cancel
Save