Add scan interval option (#245)
* Add scan interval option * Update tests for scan interval * Handle missing target properly * Update documentation to reflect that durations are not in milliseconds
This commit is contained in:
committed by
GitHub
parent
cb47aef7e4
commit
4aabf47a5d
@@ -25,7 +25,7 @@ func (s *Scanner) Scan() ([]Stream, error) {
|
||||
nmapScanner, err := nmap.NewScanner(
|
||||
nmap.WithTargets(s.targets...),
|
||||
nmap.WithPorts(s.ports...),
|
||||
nmap.WithTimingTemplate(nmap.Timing(s.speed)),
|
||||
nmap.WithTimingTemplate(nmap.Timing(s.scanSpeed)),
|
||||
)
|
||||
if err != nil {
|
||||
return nil, s.term.FailStepf("unable to create network scanner: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user