mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Changed host to hostname being stored in cache
This commit is contained in:
parent
88fb71b436
commit
39ad0d75c6
1 changed files with 3 additions and 3 deletions
|
|
@ -132,8 +132,8 @@ func ScanForAssets(params *ScanParams) []ScannedAsset {
|
||||||
|
|
||||||
// GenerateHostsWithSubnet() builds a list of hosts to scan using the "subnet"
|
// GenerateHostsWithSubnet() builds a list of hosts to scan using the "subnet"
|
||||||
// and "subnetMask" arguments passed. The function is capable of
|
// and "subnetMask" arguments passed. The function is capable of
|
||||||
// distinguishing between IP formats: a subnet with just an IP address (172.16.0.0) and
|
// distinguishing between IP formats: a subnet with just an IP address (172.16.0.0)
|
||||||
// a subnet with IP address and CIDR (172.16.0.0/24).
|
// and a subnet with IP address and CIDR (172.16.0.0/24).
|
||||||
//
|
//
|
||||||
// NOTE: If a IP address is provided with CIDR, then the "subnetMask"
|
// NOTE: If a IP address is provided with CIDR, then the "subnetMask"
|
||||||
// parameter will be ignored. If neither is provided, then the default
|
// parameter will be ignored. If neither is provided, then the default
|
||||||
|
|
@ -193,7 +193,7 @@ func rawConnect(address string, protocol string, timeoutSeconds int, keepOpenOnl
|
||||||
timeoutDuration = time.Second * time.Duration(timeoutSeconds)
|
timeoutDuration = time.Second * time.Duration(timeoutSeconds)
|
||||||
assets []ScannedAsset
|
assets []ScannedAsset
|
||||||
asset = ScannedAsset{
|
asset = ScannedAsset{
|
||||||
Host: uri.Host,
|
Host: uri.Hostname(),
|
||||||
Port: port,
|
Port: port,
|
||||||
Protocol: protocol,
|
Protocol: protocol,
|
||||||
State: false,
|
State: false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue