mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-19 19:17:02 -07:00
Fixed scan not probing the host correctly
This commit is contained in:
parent
bb49129d31
commit
2b291f811a
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue