mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix the "use ICMP" function for traceroute.
This commit is contained in:
parent
e91abcc96e
commit
e7bc770e1a
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user