mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
Use 600 instead of 644 for UUID file
Are you happy, linter?
This commit is contained in:
parent
e68dbe9cf8
commit
7da9241fd7
1 changed files with 1 additions and 1 deletions
2
caddy.go
2
caddy.go
|
@ -675,7 +675,7 @@ func InstanceID() (uuid.UUID, error) {
|
|||
if err != nil {
|
||||
return uuid, err
|
||||
}
|
||||
err = ioutil.WriteFile(uuidFilePath, []byte(uuid.String()), 0644)
|
||||
err = ioutil.WriteFile(uuidFilePath, []byte(uuid.String()), 0600)
|
||||
return uuid, err
|
||||
} else if err != nil {
|
||||
return [16]byte{}, err
|
||||
|
|
Loading…
Reference in a new issue