Skip to content

Fix gosec warning about ListenAndServe without timeout #44

@kaancfidan

Description

@kaancfidan

gosec warning:

[/github/workspace/main.go:47] - G114 (CWE): Use of net/http serve function that has no support for setting timeouts (Confidence: HIGH, Severity: MEDIUM)
46:
47: err = http.ListenAndServe(f.listenAddress, nil)
48: log.Fatal(err)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions