1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-09-09 23:22:26 +02:00

chore: update changelog
All checks were successful
Mirror to Codeberg / mirror-to-codeberg (push) Successful in 17s

This commit is contained in:
aclist 2025-03-15 17:43:28 +09:00
parent 05e897dd31
commit 3c235e22ed
4 changed files with 18 additions and 9 deletions

View file

@ -784,12 +784,18 @@ logger(){
}
test_ping(){
shift
local time
local ip="$1"
local qport="$2"
local res
res=$(ping -c1 -4 -W0.5 $1 | grep time= | awk -F= '{print $4}')
[[ ! $? -eq 0 ]] && res="Timed out"
printf "%s" "$res"
log "$ip"
log "$qport"
res=$(a2s $ip $qport info)
if [[ -z $res ]]; then
time="Timed out"
else
time=$(<<< "$res" jq -r '.[].ping')
fi
printf "%s" "$time"
}
show_server_modlist(){
shift