mirror of
https://github.com/aclist/dztui.git
synced 2025-04-04 19:43:00 +02:00
fix: parse correct key
This commit is contained in:
parent
93635d6af3
commit
34fcd5f387
1 changed files with 2 additions and 1 deletions
3
dzgui.sh
3
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')
|
||||
|
|
Loading…
Reference in a new issue