Browse Source

master port

pull/3428/head
Daniel Gibbs 4 years ago
parent
commit
acd489b28a
  1. 4
      lgsm/functions/command_dev_query_raw.sh
  2. 6
      lgsm/functions/info_config.sh
  3. 2
      lgsm/functions/info_messages.sh

4
lgsm/functions/command_dev_query_raw.sh

@ -100,8 +100,8 @@ else
echo -e "Steam: Auth:" echo -e "Steam: Auth:"
fi fi
if [ -v steammasterserverport ]; then if [ -v steammasterport ]; then
echo -e "Steam: Master: \t${steammasterserverport} \t$(ss -tupl|grep ${steammasterserverport}|wc -l) \t$(ss -tupl|grep ${steammasterserverport}|grep tcp|awk '{ print $2 }') \t$(ss -tupl|grep ${steammasterserverport}|grep udp|awk '{ print $2 }')" echo -e "Steam: Master: \t${steammasterport} \t$(ss -tupl|grep ${steammasterport}|wc -l) \t$(ss -tupl|grep ${steammasterport}|grep tcp|awk '{ print $2 }') \t$(ss -tupl|grep ${steammasterport}|grep udp|awk '{ print $2 }')"
else else
echo -e "Steam: Master:" echo -e "Steam: Master:"
fi fi

6
lgsm/functions/info_config.sh

@ -340,16 +340,16 @@ fn_info_config_dontstarve(){
if [ ! -f "${servercfgfullpath}" ]; then if [ ! -f "${servercfgfullpath}" ]; then
port="${zero}" port="${zero}"
steamauthenticationport="${zero}" steamauthenticationport="${zero}"
steammasterserverport="${zero}" steammasterport="${zero}"
else else
port=$(grep "server_port" "${servercfgfullpath}" | grep "^server_port" | grep -v "#" | tr -cd '[:digit:]') port=$(grep "server_port" "${servercfgfullpath}" | grep "^server_port" | grep -v "#" | tr -cd '[:digit:]')
steamauthenticationport=$(grep "authentication_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') steamauthenticationport=$(grep "authentication_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')
steammasterserverport=$(grep "master_server_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') steammasterport=$(grep "master_server_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')
# Not Set # Not Set
port=${port:-"0"} port=${port:-"0"}
steamauthenticationport=${steamauthenticationport:-"0"} steamauthenticationport=${steamauthenticationport:-"0"}
steammasterserverport=${steammasterserverport:-"0"} steammasterport=${steammasterport:-"0"}
fi fi
} }

2
lgsm/functions/info_messages.sh

@ -847,7 +847,7 @@ fn_info_message_dst(){
echo -e "> Game: Server\tINBOUND\t${port}\tudp" echo -e "> Game: Server\tINBOUND\t${port}\tudp"
echo -e "> Game: Master\tINBOUND\t${masterport}\tudp" echo -e "> Game: Master\tINBOUND\t${masterport}\tudp"
echo -e "> Steam: Auth\tINBOUND\t${steamauthenticationport}\tudp" echo -e "> Steam: Auth\tINBOUND\t${steamauthenticationport}\tudp"
echo -e "> Steam: Master\tINBOUND\t${steammasterserverport}\tudp" echo -e "> Steam: Master\tINBOUND\t${steammasterport}\tudp"
} | column -s $'\t' -t } | column -s $'\t' -t
} }

Loading…
Cancel
Save