blob: 571f9f874b116e892a0ae2140271def79f3f37fd (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/sh
dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
for sp in $(shuf $dir/iperf3-servers.txt); do
printf "Trying %s...\n" "$sp"
srv="${sp%:*}"
port="${sp#*:}"
iperf3 -c $srv -p $port && break
done
|