summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2021-04-01 12:12:28 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2021-04-01 12:12:28 -0600
commit7da9241fd7d1d6e9b6ce54a0557b5d861f6c8084 (patch)
treecb6b716074c421c9f2105d778111af27309114f6
parente68dbe9cf8cfd06d9205e4346412c90691f78e60 (diff)
Use 600 instead of 644 for UUID file
Are you happy, linter?
-rw-r--r--caddy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddy.go b/caddy.go
index 0c1ed97..46d8531 100644
--- a/caddy.go
+++ b/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