Просмотр исходного кода

fix(unt): incorrect query port (#3654)

* Release v21.4.0

* fix queryport for Unturned

* fix queryport

remove +1 variable from queryport

* Revert "fix queryport for Unturned"

This reverts commit 3c1ccf21d70f1d6803b9cc7a5c91197593cd0c5c.

* add steamport port+1

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
johnoclockdk 4 лет назад
Родитель
Сommit
7ac60f2366
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 1
      lgsm/functions/info_game.sh
  2. 2 1
      lgsm/functions/info_messages.sh

+ 2 - 1
lgsm/functions/info_game.sh

@@ -1943,7 +1943,8 @@ fn_info_game_unt(){
 	# Parameters
 	servername=${selfname:-"NOT SET"}
 	port=${port:-"0"}
-	queryport=$((port+1))
+	queryport=${port}
+	steamport=$((port+1))
 }
 
 fn_info_game_ut(){

+ 2 - 1
lgsm/functions/info_messages.sh

@@ -800,7 +800,7 @@ fn_info_message_arma3(){
 		fn_port "header"
 		fn_port "Game" port udp
 		fn_port "Voice" voiceport udp
-		fn_port "Query Steam" queryport udp
+		fn_port "Query" queryport udp
 		fn_port "Steam Master" steammasterport udp
 		fn_port "Voice (unused)" voiceunusedport udp
 		fn_port "BattleEye" battleeyeport udp
@@ -1517,6 +1517,7 @@ fn_info_message_unt(){
 		fn_port "header"
 		fn_port "Game" port udp
 		fn_port "Query" queryport udp
+		fn_port "Steam" steamport udp
 	} | column -s $'\t' -t
 }