Skip to content

Commit

Permalink
Update goApi.go
Browse files Browse the repository at this point in the history
修改为5分钟
  • Loading branch information
miniboom360 authored Aug 5, 2021
1 parent efd28cb commit 445d765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goApi.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func (g *GobyApi) unitScan() error {

func (g *GobyApi) post(url string, data interface{}) ([]byte, error) {
// 超时时间:5秒
client := &http.Client{Timeout: 5 * time.Second}
client := &http.Client{Timeout: 5 * time.Minute}
jsonStr, _ := json.Marshal(data)
resp, err := client.Post(url, "application/json", bytes.NewBuffer(jsonStr))
if err != nil {
Expand Down Expand Up @@ -566,4 +566,4 @@ func (g *GobyApi) GetVulns() (map[string]string, error) {
}
}
return alls, nil
}
}

0 comments on commit 445d765

Please sign in to comment.