From 7929f443eb7e66feb35b5b19ab4f1af492ea5a78 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 13 Jun 2018 19:31:56 +0100 Subject: [PATCH] gamedig now using --query_port so linuxgsm sets the query port --- lgsm/functions/command_dev_query_raw.sh | 2 +- lgsm/functions/query_gamedig.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lgsm/functions/command_dev_query_raw.sh b/lgsm/functions/command_dev_query_raw.sh index 7f3ce0105..ad4ed7a42 100644 --- a/lgsm/functions/command_dev_query_raw.sh +++ b/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"" diff --git a/lgsm/functions/query_gamedig.sh b/lgsm/functions/query_gamedig.sh index 443911e7a..81b62cfac 100644 --- a/lgsm/functions/query_gamedig.sh +++ b/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')