mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
move to OpenCHAMI and update changelog
This commit is contained in:
parent
955c9fb4bd
commit
cccf0dfdf2
14 changed files with 96 additions and 91 deletions
16
cmd/scan.go
16
cmd/scan.go
|
|
@ -6,18 +6,18 @@ import (
|
|||
"os"
|
||||
"path"
|
||||
|
||||
magellan "github.com/OpenChami/magellan/internal"
|
||||
"github.com/OpenChami/magellan/internal/db/sqlite"
|
||||
magellan "github.com/OpenCHAMI/magellan/internal"
|
||||
"github.com/OpenCHAMI/magellan/internal/db/sqlite"
|
||||
|
||||
"github.com/cznic/mathutil"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var (
|
||||
begin uint8
|
||||
end uint8
|
||||
subnets []string
|
||||
subnetMasks []net.IP
|
||||
begin uint8
|
||||
end uint8
|
||||
subnets []string
|
||||
subnetMasks []net.IP
|
||||
disableProbing bool
|
||||
)
|
||||
|
||||
|
|
@ -35,10 +35,10 @@ var scanCmd = &cobra.Command{
|
|||
return
|
||||
}
|
||||
|
||||
if len(subnetMasks) < i + 1 {
|
||||
if len(subnetMasks) < i+1 {
|
||||
subnetMasks = append(subnetMasks, net.IP{255, 255, 255, 0})
|
||||
}
|
||||
|
||||
|
||||
hostsToScan = append(hostsToScan, magellan.GenerateHosts(subnet, &subnetMasks[i])...)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue