From 39ad0d75c674c2ec91fddd22efbac10e7440a6fb Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 7 Aug 2024 19:16:43 -0600 Subject: [PATCH] Changed host to hostname being stored in cache --- internal/scan.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/scan.go b/internal/scan.go index ebab103..0accae9 100644 --- a/internal/scan.go +++ b/internal/scan.go @@ -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 @@ -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,