Skip to content

Commit 9be4a09

Browse files
authored
fix(armar): fix parsing new a2s config (#4268)
1 parent 1149efd commit 9be4a09

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lgsm/functions/info_game.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ fn_info_game_armar() {
9797
if [ ! -f "${servercfgfullpath}" ]; then
9898
adminpassword="${unavailable}"
9999
maxplayers="${zero}"
100-
port=${port:-"0"}
101-
queryport=
100+
port="${zero}"
101+
queryport="${zero}"
102102
servername="${unavailable}"
103103
serverpassword="${unavailable}"
104104
else
@@ -107,7 +107,7 @@ fn_info_game_armar() {
107107
configip=$(jq -r '.bindAddress' "${servercfgfullpath}")
108108
maxplayers=$(jq -r '.game.maxPlayers' "${servercfgfullpath}")
109109
port=$(jq -r '.bindPort' "${servercfgfullpath}")
110-
queryport=$(jq -r '.steamQueryPort' "${servercfgfullpath}")
110+
queryport=$(jq -r '.a2s.port' "${servercfgfullpath}")
111111
servername=$(jq -r '.game.name' "${servercfgfullpath}")
112112
serverpassword=$(jq -r '.game.password' "${servercfgfullpath}")
113113

lgsm/modules/info_game.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ fn_info_game_armar() {
876876
fn_info_game_json "configip" ".bindAddress"
877877
fn_info_game_json "maxplayers" ".game.maxPlayers"
878878
fn_info_game_json "port" ".bindPort"
879-
fn_info_game_json "queryport" ".steamQueryPort"
879+
fn_info_game_json "queryport" ".a2s.port"
880880
fn_info_game_json "servername" ".game.name"
881881
fn_info_game_json "serverpassword" ".game.password"
882882
fi

0 commit comments

Comments
 (0)