diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-01-22 23:34:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 23:34:07 +0100 |
commit | 221aee86f4d4291434dc60569d3d58da99639ffe (patch) | |
tree | dcdd428bf09c8d51336650201568098b90104fdd /src/op_mode | |
parent | 3b7629eaa4c8b0e4561cdef4b6947f3cf1d4e880 (diff) | |
parent | 60d3e93c33df598224df8f960efee92b035c60f4 (diff) | |
download | vyos-1x-221aee86f4d4291434dc60569d3d58da99639ffe.tar.gz vyos-1x-221aee86f4d4291434dc60569d3d58da99639ffe.zip |
Merge pull request #1186 from nicolas-fort/T4153
bandwidth-test: T4153: Fixed bandwidth-test initiate
Diffstat (limited to 'src/op_mode')
-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 |