summaryrefslogtreecommitdiff
path: root/scripts/ping
diff options
context:
space:
mode:
authorEshenko Dmitriy <snooppy@mail.ua>2019-08-31 19:00:15 +0300
committerGitHub <noreply@github.com>2019-08-31 19:00:15 +0300
commit2cf9cd8a65dbf6e0c3f2080342b79c6b40559d95 (patch)
tree1542a810a8d96e76ce90ec1a460868d68e249c21 /scripts/ping
parent8efa92beebfbeb70dd834b568365eda161271d38 (diff)
downloadvyatta-op-2cf9cd8a65dbf6e0c3f2080342b79c6b40559d95.tar.gz
vyatta-op-2cf9cd8a65dbf6e0c3f2080342b79c6b40559d95.zip
[ping] T1450 Recovering ping for ipv6
After adding sudo, always runs `ping` instead using `ping6` for ipv6
Diffstat (limited to 'scripts/ping')
-rwxr-xr-xscripts/ping2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ping b/scripts/ping
index 2737383..06d38d5 100755
--- a/scripts/ping
+++ b/scripts/ping
@@ -238,7 +238,7 @@ given ($ip->version) {
}
}
-my @cmdargs = ( 'ping' );
+my @cmdargs = ( $cmd );
my $args = [ 'ping', $host, @ARGV ];
$args = expand_args(\%options, $args);
shift @$args; shift @$args;