mirror of
https://github.com/Kyren223/eko.git
synced 2026-05-05 19:24:41 +00:00
Fixed all high and medium security issues from gosec
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user