Skip to content

Commit

Permalink
Changed host to hostname being stored in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
davidallendj committed Aug 8, 2024
1 parent 88fb71b commit 39ad0d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ func ScanForAssets(params *ScanParams) []ScannedAsset {

// GenerateHostsWithSubnet() builds a list of hosts to scan using the "subnet"
// 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
// a subnet with IP address and CIDR (172.16.0.0/24).
// distinguishing between IP formats: a subnet with just an IP address (172.16.0.0)
// 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"
// parameter will be ignored. If neither is provided, then the default
Expand Down Expand Up @@ -193,7 +193,7 @@ func rawConnect(address string, protocol string, timeoutSeconds int, keepOpenOnl
timeoutDuration = time.Second * time.Duration(timeoutSeconds)
assets []ScannedAsset
asset = ScannedAsset{
Host: uri.Host,
Host: uri.Hostname(),
Port: port,
Protocol: protocol,
State: false,
Expand Down

0 comments on commit 39ad0d7

Please # to comment.