diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-08-04 00:20:22 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-08-04 00:20:22 +0200 |
commit | 28b33f38436069f8b15ea1c51099f2184f5dbef6 (patch) | |
tree | 9538058abc2e4a2a789115ecab7e9f316b63f3a3 | |
parent | 5b6dbececd1c158e8fdb1c2458a2be5528ad38b8 (diff) |
Fix ping for Cisco.
-rw-r--r-- | routers/cisco.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/cisco.php b/routers/cisco.php index cc601a7..d1b65b2 100644 --- a/routers/cisco.php +++ b/routers/cisco.php @@ -57,9 +57,9 @@ final class Cisco extends Router { case 'ping': if (match_ipv4($parameters)) { - $commands[] = 'ping '.$parameters.' count 10'; + $commands[] = 'ping '.$parameters.' repeat 10'; } else if (match_ipv6($parameters)) { - $commands[] = 'ping ipv6 '.$parameters.' count 10'; + $commands[] = 'ping ipv6 '.$parameters.' repeat 10'; } else { throw new Exception('The parameter is not an IPv4/IPv6 address.'); } |