Skip to content

Commit

Permalink
Fixed scan not probing the host correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
davidallendj committed Aug 13, 2024
1 parent bb49129 commit 2b291f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func ScanForAssets(params *ScanParams) []RemoteAsset {
// if we failed to connect, exit from the function
if err != nil {
if params.Verbose {
log.Debug().Err(err).Msgf("failed to connect to host (%s)", host)
log.Debug().Err(err).Msgf("failed to connect to host")
}
wg.Done()
return
Expand Down Expand Up @@ -193,7 +193,7 @@ func rawConnect(address string, protocol string, timeoutSeconds int, keepOpenOnl
timeoutDuration = time.Second * time.Duration(timeoutSeconds)
assets []RemoteAsset
asset = RemoteAsset{
Host: uri.Hostname(),
Host: fmt.Sprintf("%s://%s", uri.Scheme, uri.Hostname()),
Port: port,
Protocol: protocol,
State: false,
Expand Down

0 comments on commit 2b291f8

Please sign in to comment.