Skip to content

Commit 0e2eed4

Browse files
committed
devnull doesn't exist on windows
1 parent 567a253 commit 0e2eed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/classes/class.Scan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ protected function ping_address_method_ping ($address) {
372372
# set ping command based on OS type
373373
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"; }
374374
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"; }
376376
else { $cmd = $this->config->pingpath." -c $this->icmp_count -n $address 1>/dev/null 2>&1"; }
377377

378378
# execute command, return $retval

0 commit comments

Comments
 (0)