From 34fcd5f3873de5b2d88646097222355690539f91 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 8 Dec 2023 22:04:21 +0900 Subject: [PATCH] fix: parse correct key --- dzgui.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dzgui.sh b/dzgui.sh index 958e575..4db4d09 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -757,7 +757,8 @@ parse_ips(){ return 1 fi logger INFO "$res" - local name=$(<<< $res jq -r '.address') + local name=$(<<< $res jq -r '.name') + local address=$(<<< $res jq -r '.address') local ip=$(<<< $address awk -F: '{print $1}') local gameport=$(<<< $address awk -F: '{print $2}') local qport=$(<<< $res jq '.qport')