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
All checks were successful
Mirror to Codeberg / mirror-to-codeberg (push) Successful in 17s
This commit is contained in:
parent
05e897dd31
commit
3c235e22ed
4 changed files with 18 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue