added test
This commit is contained in:
@@ -2,9 +2,10 @@ package main
|
||||
|
||||
import "path/filepath"
|
||||
|
||||
// updatePaths sets certificate and config file paths based on the current config
|
||||
func updatePaths() {
|
||||
certDir = filepath.Join(baseDir, config.CertDir)
|
||||
certPath = filepath.Join(certDir, config.CertFile)
|
||||
keyPath = filepath.Join(certDir, config.KeyFile)
|
||||
configPath = filepath.Join(baseDir, "config.yaml")
|
||||
certDir = filepath.Join(baseDir, config.CertDir) // Certificate directory path
|
||||
certPath = filepath.Join(certDir, config.CertFile) // Full certificate file path
|
||||
keyPath = filepath.Join(certDir, config.KeyFile) // Full private key file path
|
||||
configPath = filepath.Join(baseDir, "config.yaml") // Config file path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user