added test

This commit is contained in:
ghostersk
2025-03-01 19:13:22 +00:00
parent 55b65aef8c
commit bd1c372435
16 changed files with 1179 additions and 128 deletions
+5 -4
View File
@@ -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
}