summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-ping2
-rw-r--r--scripts/vyatta-traceroute2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-ping b/scripts/vyatta-ping
index d454c19..393c0ab 100644
--- a/scripts/vyatta-ping
+++ b/scripts/vyatta-ping
@@ -17,7 +17,7 @@ else
| grep -m1 -E "$ip4regex">/dev/null; then
# resolve address and check if it is ipv4 or other
/bin/ping ${@:2} $ADDR
- elif host $ADDR | awk {' print $4 '} \
+ elif host $ADDR | awk {' print $5 '} \
| grep -m1 -E "$ip6regex">/dev/null; then
# if ipv6 resolution then ping6
/bin/ping6 ${@:2} $ADDR
diff --git a/scripts/vyatta-traceroute b/scripts/vyatta-traceroute
index f6dff6b..ca87a6d 100644
--- a/scripts/vyatta-traceroute
+++ b/scripts/vyatta-traceroute
@@ -17,7 +17,7 @@ else
| grep -m1 -E "$ip4regex">/dev/null; then
# resolve address and check if it is ipv4 or other
/usr/bin/traceroute ${@:2} $ADDR
- elif host $ADDR | awk {' print $4 '} \
+ elif host $ADDR | awk {' print $5 '} \
| grep -m1 -E "$ip6regex">/dev/null; then
# if ipv6 resolution then ping6
/usr/bin/traceroute6 ${@:2} $ADDR