diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2022-01-22 14:02:38 +0000 |
---|---|---|
committer | Nicolas Fort <nicolasfort1988@gmail.com> | 2022-01-22 14:02:38 +0000 |
commit | 60d3e93c33df598224df8f960efee92b035c60f4 (patch) | |
tree | dcdd428bf09c8d51336650201568098b90104fdd | |
parent | 3b7629eaa4c8b0e4561cdef4b6947f3cf1d4e880 (diff) | |
download | vyos-1x-60d3e93c33df598224df8f960efee92b035c60f4.tar.gz vyos-1x-60d3e93c33df598224df8f960efee92b035c60f4.zip |
bandwidth-test: T4153: Fixed bandwidth-test initiate, which was not working with ipv4
-rwxr-xr-x | src/op_mode/monitor_bandwidth_test.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 |