From fffa3c75e13c41591f990fd0d885ed899e74ceab Mon Sep 17 00:00:00 2001 From: Rafael Sampaio <5679073+r4f4ss@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:43:42 -0300 Subject: [PATCH] removal of execution permission of clientKey file --- cmd/shisui/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/shisui/main.go b/cmd/shisui/main.go index 5589c1b2f9..c320842ac9 100644 --- a/cmd/shisui/main.go +++ b/cmd/shisui/main.go @@ -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 }