mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-21 00:29:03 +01:00
chore: add ROOT_DIR environment variable, refactor
This commit is contained in:
@@ -59,7 +59,7 @@ func AgentCertsFilepath(host string) (filepathOut string, ok bool) {
|
||||
if !isValidAgentHost(host) {
|
||||
return "", false
|
||||
}
|
||||
return filepath.Join(common.AgentCertsBasePath, host+".zip"), true
|
||||
return filepath.Join(common.CertsDir, host+".zip"), true
|
||||
}
|
||||
|
||||
func ExtractCert(data []byte) (ca, crt, key []byte, err error) {
|
||||
|
||||
Reference in New Issue
Block a user