Skip to content

Commit

Permalink
removal of execution permission of clientKey file
Browse files Browse the repository at this point in the history
  • Loading branch information
r4f4ss committed Sep 30, 2024
1 parent 4256da4 commit fffa3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/shisui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func writePrivateKey(privateKey *ecdsa.PrivateKey, config *Config, fileName stri
keyEnc := hex.EncodeToString(crypto.FromECDSA(privateKey))

fullPath := filepath.Join(config.DataDir, fileName)
file, err := os.OpenFile(fullPath, os.O_CREATE|os.O_WRONLY, 0700)
file, err := os.OpenFile(fullPath, os.O_CREATE|os.O_WRONLY, 0600)
if err != nil {
return err
}
Expand Down

0 comments on commit fffa3c7

Please sign in to comment.