mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-29 22:23:02 +00:00
Fixed stdin input parsing bug (#1286)
This commit is contained in:
parent
dfe284664c
commit
b59582bde7
@ -71,9 +71,8 @@ func hasStdin() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
isPipedFromChrDev := (stat.Mode() & os.ModeCharDevice) == 0
|
||||
isPipedFromChrDev := (stat.Mode() & os.ModeCharDevice) != 0
|
||||
isPipedFromFIFO := (stat.Mode() & os.ModeNamedPipe) != 0
|
||||
|
||||
return isPipedFromChrDev || isPipedFromFIFO
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user