mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-08-06 17:31:49 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1cf8bca79e | ||
![]() |
cbffafbb4c |
@@ -39,12 +39,12 @@ func New() (*LegoCMD, error) {
|
|||||||
configPath := os.Getenv("XRAY_LOCATION_CONFIG")
|
configPath := os.Getenv("XRAY_LOCATION_CONFIG")
|
||||||
if configPath != "" {
|
if configPath != "" {
|
||||||
path = configPath
|
path = configPath
|
||||||
} else if cwd, err := os.Getwd(); err==nil{
|
} else if cwd, err := os.Getwd(); err == nil {
|
||||||
path = cwd
|
path = cwd
|
||||||
} else {
|
} else {
|
||||||
path = "."
|
path = "."
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultPath = filepath.Join(path, "cert")
|
defaultPath = filepath.Join(path, "cert")
|
||||||
|
|
||||||
app.Flags = cmd.CreateFlags(defaultPath)
|
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
|
// Set Env for DNS configuration
|
||||||
for key, value := range DNSEnv {
|
for key, value := range DNSEnv {
|
||||||
os.Setenv(key, value)
|
os.Setenv(strings.ToUpper(key), value)
|
||||||
}
|
}
|
||||||
// First check if the certificate exists
|
// First check if the certificate exists
|
||||||
CertPath, KeyPath, err = checkCertfile(domain)
|
CertPath, KeyPath, err = checkCertfile(domain)
|
||||||
|
@@ -23,7 +23,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
version = "0.8.3"
|
version = "0.8.4"
|
||||||
codename = "XrayR"
|
codename = "XrayR"
|
||||||
intro = "A Xray backend that supports many panels"
|
intro = "A Xray backend that supports many panels"
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user