Skip to content

Commit

Permalink
Fix local/remote order
Browse files Browse the repository at this point in the history
Both iproute2 and busybox show the remote IP before the local IP. With the
wrong order, we see a 'ping: bind: Cannot assign requested address'.
  • Loading branch information
Jan Luebbe committed Jan 26, 2022
1 parent 3ffa396 commit 6757968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ done;

for t in `ip tun show | grep 185.66.19`; do
echo "Test results for $t"
local=`echo $t | cut -d " " -f 4`
remote=`echo $t | cut -d " " -f 6`
remote=`echo $t | cut -d " " -f 4`
local=`echo $t | cut -d " " -f 6`
ping -I $local -i 0.01 -c 10000 -q $remote
mtr -a $local -i 0.1 -c 1000 -r -w $remote
done;
Expand Down

0 comments on commit 6757968

Please sign in to comment.