1
0
Fork 0
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:
aclist 2023-12-08 22:04:21 +09:00
parent 93635d6af3
commit 34fcd5f387

View file

@ -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')