Skip to content

Commit

Permalink
Release 20.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Sep 20, 2020
1 parent 0bfffbc commit e794d89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lgsm/functions/command_postdetails.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn_print_ok_nl "termbin.com for 30D"
fn_script_log_pass "termbin.com for 30D"
pdurl="${link}"

if [ ${firstcommandname} == "POST-DETAILS" ]; then
if [ "${firstcommandname}" == "POST-DETAILS" ]; then
echo -e ""
echo -e "Please share the following url for support: "
echo -e "${pdurl}"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/functions/info_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ fn_info_config_sdtd(){
else
servername=$(grep "ServerName" "${servercfgfullpath}" | sed 's/^.*value="//' | cut -f1 -d"\"")
serverpassword=$(grep "ServerPassword" "${servercfgfullpath}" | sed 's/^.*value="//' | cut -f1 -d"\"")
port=$(grep "ServerPort" "${servercfgfullpath}" | egrep -o 'value="[0-9]+"' | tr -cd '[:digit:]')
port=$(grep "ServerPort" "${servercfgfullpath}" | grep -Eo 'value="[0-9]+"' | tr -cd '[:digit:]')
queryport=${port:-"0"}

webadminenabled=$(grep "ControlPanelEnabled" "${servercfgfullpath}" | sed 's/^.*value="//' | cut -f1 -d"\"")
Expand Down
4 changes: 2 additions & 2 deletions lgsm/functions/info_distro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,11 @@ if [ "$(command -v jq 2>/dev/null)" ]; then
if [ "${steammaster}" == "true" ]; then
# Will query server IP addresses first.
for queryip in "${queryips[@]}"; do
masterserver=$(curl -m 3 -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${queryip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l 2>/dev/null)
masterserver="$(curl -m 3 -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${queryip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l 2>/dev/null)"
done
# Should that not work it will try the external IP.
if [ "${masterserver}" == "0" ]; then
masterserver=$(curl -m 3 -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${extip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l 2>/dev/null)
masterserver="$(curl -m 3 -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${extip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l 2>/dev/null)"
fi
if [ "${masterserver}" == "0" ]; then
displaymasterserver="false"
Expand Down

0 comments on commit e794d89

Please sign in to comment.