Browse Source

srcds_linux

pull/3428/head
Daniel Gibbs 4 years ago
parent
commit
588ce82995
  1. 2
      lgsm/functions/info_messages.sh
  2. 4
      lgsm/functions/info_parms.sh

2
lgsm/functions/info_messages.sh

@ -669,6 +669,8 @@ fn_info_message_ports(){
echo -e "${lightblue}Useful port diagnostic command:${default}"
if [ "${shortname}" == "av" ]; then
echo -e "ss -tuplwn | grep AvorionServer"
elif [ "${engine}" == "source" ]; then
echo -e "ss -tuplwn | grep srcds_linux"
else
executableshort="$(echo "${executable//.\/}" | cut -c -15)"
echo -e "ss -tuplwn | grep ${executableshort}"

4
lgsm/functions/info_parms.sh

@ -172,8 +172,8 @@ fn_info_parms_source(){
clientport=${clientport:-"0"}
# Steamport can be between 26901-26910 and is normaly automaticly set.
# Some servers might support -steamport parameter to set
if [ -z "${steamport}" ]; then
steamport="$(echo "${ssinfo}" | grep "${gameserverpid}" | awk '{print $5}' | grep ":269" | cut -d ":" -f2)"
if [ "${steamport}" == "0" ]||[ -z "${steamport}" ]; then
steamport="$(echo "${ssinfo}" | grep "${srcdslinuxpid}" | awk '{print $5}' | grep ":269" | cut -d ":" -f2)"
fi
steamport="${steamport:-"0"}"
}

Loading…
Cancel
Save