Explorar o código

fix(pstbs): fix queryport from config (#3597)

Christian %!s(int64=4) %!d(string=hai) anos
pai
achega
04d680d903
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      lgsm/functions/info_game.sh

+ 3 - 1
lgsm/functions/info_game.sh

@@ -1077,7 +1077,9 @@ fn_info_game_pstbs(){
 
 	# Parameters
 	port=${port:-"0"}
-	queryport=${port:-"0"}
+	if [ -z "${queryport}" ]; then
+		queryport=${port:-"0"}
+	fi
 	rconport=${rconport:-"0"}
 	randommap=${randommap:-"NOT SET"}
 	maxplayers=${maxplayers:-"0"}