From e7bc770e1a0846628f5d4abea252da4e30d9a6c9 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 9 Jul 2013 10:59:55 -0400 Subject: [PATCH] Fix the "use ICMP" function for traceroute. --- usr/local/www/diag_traceroute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/diag_traceroute.php b/usr/local/www/diag_traceroute.php index 6399708b30..1e27020ec4 100755 --- a/usr/local/www/diag_traceroute.php +++ b/usr/local/www/diag_traceroute.php @@ -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);