2 Commits

Author SHA1 Message Date
pocketW
1cf8bca79e update v0.8.4 2022-09-18 14:26:48 +10:00
pocketW
cbffafbb4c fix: fix CF dns env error #51 2022-09-18 14:19:55 +10:00
2 changed files with 4 additions and 4 deletions

View File

@@ -39,12 +39,12 @@ func New() (*LegoCMD, error) {
configPath := os.Getenv("XRAY_LOCATION_CONFIG")
if configPath != "" {
path = configPath
} else if cwd, err := os.Getwd(); err==nil{
} else if cwd, err := os.Getwd(); err == nil {
path = cwd
} else {
path = "."
}
defaultPath = filepath.Join(path, "cert")
app.Flags = cmd.CreateFlags(defaultPath)
@@ -79,7 +79,7 @@ func (l *LegoCMD) DNSCert(domain, email, provider string, DNSEnv map[string]stri
}()
// Set Env for DNS configuration
for key, value := range DNSEnv {
os.Setenv(key, value)
os.Setenv(strings.ToUpper(key), value)
}
// First check if the certificate exists
CertPath, KeyPath, err = checkCertfile(domain)

View File

@@ -23,7 +23,7 @@ var (
)
var (
version = "0.8.3"
version = "0.8.4"
codename = "XrayR"
intro = "A Xray backend that supports many panels"
)