File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ protected function ping_address_method_ping ($address) {
372
372
# set ping command based on OS type
373
373
if (PHP_OS == "FreeBSD " || PHP_OS == "NetBSD " ) { $ cmd = $ this ->config ->pingpath ." -c $ this ->icmp_count -W " .($ this ->icmp_timeout *1000 )." $ address 1>/dev/null 2>&1 " ; }
374
374
elseif (PHP_OS == "Linux " || PHP_OS == "OpenBSD " ) { $ cmd = $ this ->config ->pingpath ." -c $ this ->icmp_count -w $ this ->icmp_timeout $ address 1>/dev/null 2>&1 " ; }
375
- elseif (PHP_OS == "WIN32 " || PHP_OS == "Windows " || PHP_OS == "WINNT " ) { $ cmd = $ this ->config ->pingpath ." -n $ this ->icmp_count -I " .($ this ->icmp_timeout *1000 )." $ address 1>/dev/null 2>&1 " ; }
375
+ elseif (PHP_OS == "WIN32 " || PHP_OS == "Windows " || PHP_OS == "WINNT " ) { $ cmd = $ this ->config ->pingpath ." -n $ this ->icmp_count -I " .($ this ->icmp_timeout *1000 )." $ address " ; }
376
376
else { $ cmd = $ this ->config ->pingpath ." -c $ this ->icmp_count -n $ address 1>/dev/null 2>&1 " ; }
377
377
378
378
# execute command, return $retval
You can’t perform that action at this time.
0 commit comments