Browse Source

fix(rust): allow queryport to be changed and parsed

pull/4024/head
H3o66 3 years ago
parent
commit
a7637be88d
  1. 5
      lgsm/functions/info_game.sh

5
lgsm/functions/info_game.sh

@ -1462,7 +1462,12 @@ fn_info_game_rust() {
# Parameters
servername=${servername:-"NOT SET"}
port=${port:-"0"}
if [ -f "${servercfgfullpath}" ]; then
queryport=$(sed -nr 's/^queryport\s+(.*)/\1/p' "${servercfgfullpath}")
fi
if [ -z "${queryport}" ]; then
queryport=${port:-"0"}
fi
appport=${appport:-"0"}
rconport=${rconport:-"0"}
gamemode=${gamemode:-"NOT SET"}

Loading…
Cancel
Save