Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gosec warning about ListenAndServe without timeout #44

Open
kaancfidan opened this issue Aug 28, 2022 · 0 comments
Open

Fix gosec warning about ListenAndServe without timeout #44

kaancfidan opened this issue Aug 28, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kaancfidan
Copy link
Owner

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)

@kaancfidan kaancfidan added the enhancement New feature or request label Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant