Skip to content

Commit 4075bf7

Browse files
committed
fix
1 parent f1cc3ac commit 4075bf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tls/tls.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (cm *CertificateManager) GetCACertPEM() ([]byte, error) {
6666
// Returns the TLS config, CA cert path, and config directory
6767
func (cm *CertificateManager) SetupTLSAndWriteCACert() (*tls.Config, string, string, error) {
6868
// Get config directory
69-
configDir, err := GetConfigDir()
69+
configDir, err := getConfigDir()
7070
if err != nil {
7171
return nil, "", "", fmt.Errorf("failed to get config directory: %v", err)
7272
}
@@ -342,8 +342,8 @@ func (cm *CertificateManager) generateServerCertificate(hostname string) (*tls.C
342342
return tlsCert, nil
343343
}
344344

345-
// GetConfigDir returns the configuration directory path
346-
func GetConfigDir() (string, error) {
345+
// getConfigDir returns the configuration directory path
346+
func getConfigDir() (string, error) {
347347
// When running under sudo, use the original user's home directory
348348
// so the subprocess can access the CA certificate files
349349
var homeDir string

0 commit comments

Comments
 (0)