Fixed all high and medium security issues from gosec

This commit is contained in:
2025-01-07 19:02:14 +02:00
parent 4c2672b497
commit 4e2ca64319
8 changed files with 16 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ func main() {
stdout := flag.Bool("stdout", false, "enable logging to stdout")
flag.Parse()
logFile, err := os.OpenFile("server.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0666)
logFile, err := os.OpenFile("server.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0600)
if err != nil {
log.Fatalln(err)
}