4
0
Эх сурвалжийг харах

gamedig now using --query_port so linuxgsm sets the query port

Daniel Gibbs 8 жил өмнө
parent
commit
7929f443eb

+ 1 - 1
lgsm/functions/command_dev_query_raw.sh

@@ -29,7 +29,7 @@ elif [ "${gamename}" == "Killing Floor 2" ]; then
 fi
 
 query_gamedig.sh
-echo "gamedig --type \"${gamedigengine}\" --host \"${ip}\" --port \"${queryport}\"|jq"
+echo "gamedig --type \"${gamedigengine}\" --host \"${ip}\" --query_port \"${queryport}\"|jq"
 echo""
 echo "${gamedigraw}" | jq
 echo""

+ 2 - 2
lgsm/functions/query_gamedig.sh

@@ -66,9 +66,9 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ];
 	check_status.sh
 	if [ "${status}" != "0" ]; then
 		# checks if query is working 0 = pass
-		querystatus=$(gamedig --type "${gamedigengine}" --host "${ip}" --port "${queryport}" | jq '.error|length')
+		querystatus=$(gamedig --type "${gamedigengine}" --host "${ip}" --query_port "${queryport}" | jq '.error|length')
 		# raw output
-		gamedigraw=$(gamedig --type "${gamedigengine}" --host "${ip}" --port "${queryport}")
+		gamedigraw=$(gamedig --type "${gamedigengine}" --host "${ip}" --query_port "${queryport}")
 
 		# server name
 		gdname=$(echo "${gamedigraw}" | jq -re '.name')