mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Minor changes to MakeRequest function
This commit is contained in:
parent
efda3d8aa7
commit
f1db827c61
4 changed files with 21 additions and 12 deletions
|
|
@ -116,7 +116,7 @@ func ScanForAssets(hosts []string, ports []int, threads int, timeout int, disabl
|
|||
probeResults := []ScannedResult{}
|
||||
for _, result := range scannedResults {
|
||||
url := fmt.Sprintf("https://%s:%d/redfish/v1/", result.Host, result.Port)
|
||||
res, _, err := util.MakeRequest(url, "GET", nil, nil)
|
||||
res, _, err := util.MakeRequest(nil, url, "GET", nil, nil)
|
||||
if err != nil || res == nil {
|
||||
continue
|
||||
} else if res.StatusCode != http.StatusOK {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue