Files
GoLangProxy/utils.go
2025-03-01 19:13:22 +00:00

12 lines
461 B
Go

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) // 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
}