From 6ea1d66e0f7b3718e6c3ef6ca3b1f4753bc0e40d Mon Sep 17 00:00:00 2001 From: Michael Hohl Date: Sat, 4 Jul 2026 03:15:30 +0200 Subject: [PATCH] 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. --- yabs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yabs.sh b/yabs.sh index 78af185..39793f0 100755 --- a/yabs.sh +++ b/yabs.sh @@ -801,7 +801,7 @@ function iperf_test { done # 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="--" # parse the resulting send and receive speed results