mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
committed by
Aaron Schlesinger
parent
054edde824
commit
667b9fdf65
@@ -130,7 +130,7 @@ func (c *Config) TLSCertFiles() (cert, key string, err error) {
|
||||
}
|
||||
|
||||
if keyFile.Mode()&077 != 0 && runtime.GOOS != "windows" {
|
||||
return "", "", fmt.Errorf("TLSKeyFile should not be accessable by others")
|
||||
return "", "", fmt.Errorf("TLSKeyFile should not be accessible by others")
|
||||
}
|
||||
|
||||
return certFile.Name(), keyFile.Name(), nil
|
||||
|
||||
Reference in New Issue
Block a user