mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -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
|
|
@ -43,7 +43,7 @@ func ScanForAssets() error {
|
|||
func QueryScannedPorts() error {
|
||||
// Perform scan and collect from dora server
|
||||
url := makeEndpointUrl("/scanned_ports")
|
||||
_, body, err := util.MakeRequest(url, "GET", nil, nil)
|
||||
_, body, err := util.MakeRequest(nil, url, "GET", nil, nil)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not discover assets: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue