fix: dir name of wildcard cert changed in linux #591

This commit is contained in:
Jacky 2024-10-03 17:42:29 +08:00
parent b5ca983977
commit ea46c806cf
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D

View file

@ -58,6 +58,8 @@ func (c *ConfigPayload) mkCertificateDir() (err error) {
if err == nil {
return nil
}
} else {
return nil
}
if _, err = os.Stat(c.CertificateDir); os.IsNotExist(err) {
@ -65,6 +67,8 @@ func (c *ConfigPayload) mkCertificateDir() (err error) {
if err == nil {
return nil
}
} else {
return nil
}
// For windows, replace * with # (issue #403)