-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
HTTP server is initialized without a timeout. This is highlighted by the linter as a security issue.
G114: Use of net/http serve function that has no support for setting timeouts (gosec)
Lines 449 to 453 in 39589dc
| err = http.ListenAndServe(cfg.Listen, nil) | |
| if err != nil { | |
| log.Printf("Failed to bind http server: %v", err) | |
| cancel() | |
| } |
Metadata
Metadata
Assignees
Labels
No labels