Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
Use 600 instead of 644 for UUID file
Are you happy, linter?
Matthew Holt committed
Apr 1, 2021 at 12:12 UTC
7da9241fd7d1d6e9b6ce54a0557b5d861f6c8084
1 file changed
+1
-1
caddy.go
+1
-1
@@ -675,7 +675,7 @@ func InstanceID() (uuid.UUID, error) {
675
if err != nil {
676
return uuid, err
677
}
678
- err = ioutil.WriteFile(uuidFilePath, []byte(uuid.String()), 0644)
678
+ err = ioutil.WriteFile(uuidFilePath, []byte(uuid.String()), 0600)
679
return uuid, err
680
} else if err != nil {
681
return [16]byte{}, err