Fix the "use ICMP" function for traceroute.

This commit is contained in:
jim-p 2013-07-09 10:59:55 -04:00
parent e91abcc96e
commit e7bc770e1a

View File

@ -187,7 +187,7 @@ if ($do_traceroute) {
if ($ifaddr && (is_ipaddr($host) || is_hostname($host)))
$srcip = "-s " . escapeshellarg($ifaddr);
$cmd = "{$command} {$n} {$srcip} -w 2 -m " . escapeshellarg($ttl) . " " . escapeshellarg($host);
$cmd = "{$command} {$n} {$srcip} -w 2 {$useicmp} -m " . escapeshellarg($ttl) . " " . escapeshellarg($host);
//echo "Traceroute command: {$cmd}\n";
system($cmd);