Changed host to hostname being stored in cache

This commit is contained in:
David Allen 2024-08-07 19:16:43 -06:00
parent 88fb71b436
commit 39ad0d75c6
Signed by: towk
GPG key ID: 793B2924A49B3A3F

View file

@ -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,