From 60d3e93c33df598224df8f960efee92b035c60f4 Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Sat, 22 Jan 2022 14:02:38 +0000 Subject: bandwidth-test: T4153: Fixed bandwidth-test initiate, which was not working with ipv4 --- src/op_mode/monitor_bandwidth_test.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/op_mode/monitor_bandwidth_test.sh b/src/op_mode/monitor_bandwidth_test.sh index 900223bca..a6ad0b42c 100755 --- a/src/op_mode/monitor_bandwidth_test.sh +++ b/src/op_mode/monitor_bandwidth_test.sh @@ -24,6 +24,9 @@ elif [[ $(dig $1 AAAA +short | grep -v '\.$' | wc -l) -gt 0 ]]; then # Set address family to IPv6 when FQDN has at least one AAAA record OPT="-V" +else + # It's not IPv6, no option needed + OPT="" fi /usr/bin/iperf $OPT -c $1 $2 -- cgit v1.2.3