From 6757968e13dc32ceb40f505234f833867d751c4b Mon Sep 17 00:00:00 2001 From: Jan Luebbe Date: Wed, 26 Jan 2022 20:46:32 +0100 Subject: [PATCH] Fix local/remote order 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'. --- diag.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diag.sh b/diag.sh index 2c7416e..8c412cc 100755 --- a/diag.sh +++ b/diag.sh @@ -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;