Răsfoiți Sursa

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

Christian 4 ani în urmă
părinte
comite
04d680d903
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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"}