Removed and updated flags

This commit is contained in:
David J. Allen 2024-05-10 10:09:37 -06:00
parent ebee86ccbe
commit 9663b677ba
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
3 changed files with 34 additions and 43 deletions

View file

@ -54,10 +54,10 @@ var scanCmd = &cobra.Command{
}
// scan and store probe data in dbPath
if threads <= 0 {
threads = mathutil.Clamp(len(hostsToScan), 1, 255)
if concurrency <= 0 {
concurrency = mathutil.Clamp(len(hostsToScan), 1, 255)
}
probeStates := magellan.ScanForAssets(hostsToScan, portsToScan, threads, timeout, disableProbing, verbose)
probeStates := magellan.ScanForAssets(hostsToScan, portsToScan, concurrency, timeout, disableProbing, verbose)
if verbose {
for _, r := range probeStates {
fmt.Printf("%s:%d (%s)\n", r.Host, r.Port, r.Protocol)