Fix: iperf_test latency measurement ignores IPv4/IPv6 (#126)

`iperf_test` only calls `ping -c1 $URL` right now, not passing IPv4 or IPv6 parameters to ping. It thus doesn't differentiate between IPv4 and IPv6 latency at all.
This commit is contained in:
Michael Hohl
2026-07-04 03:15:30 +02:00
committed by GitHub
parent 3125fedff1
commit 6ea1d66e0f

View File

@@ -801,7 +801,7 @@ function iperf_test {
done done
# Run a latency test via ping -c1 command -> will return "xx.x ms" # Run a latency test via ping -c1 command -> will return "xx.x ms"
[[ -n $LOCAL_PING ]] && LATENCY_RUN="$(ping -c1 "$URL" 2>/dev/null | grep -o 'time=.*' | sed s/'time='//)" [[ -n $LOCAL_PING ]] && LATENCY_RUN="$(ping $FLAGS -c1 "$URL" 2>/dev/null | grep -o 'time=.*' | sed s/'time='//)"
[[ -z $LATENCY_RUN ]] && LATENCY_RUN="--" [[ -z $LATENCY_RUN ]] && LATENCY_RUN="--"
# parse the resulting send and receive speed results # parse the resulting send and receive speed results