mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
simpler logic
This commit is contained in:
@@ -48,7 +48,7 @@ class Fping
|
||||
$cmd = [$fping];
|
||||
if ($address_family == 'ipv6') {
|
||||
$fping6 = Config::get('fping6');
|
||||
$cmd = (!is_executable($fping6) && is_executable($fping)) ? [$fping, '-6'] : [$fping6];
|
||||
$cmd = is_executable($fping6) ? [$fping6] : [$fping, '-6'];
|
||||
}
|
||||
|
||||
// build the command
|
||||
|
Reference in New Issue
Block a user