Merge pull request #8 from serogaq/hotfix/envKeyName

hotfix / env key name
This commit is contained in:
serogaq 2024-12-06 23:46:41 +03:00 committed by GitHub
commit ba1aad1c20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,7 +81,7 @@ func (a *SUBController) subs(c *gin.Context) {
profileTitle = subId
}
var supportUrl string
supportUrl = os.Getenv("XUI_SUB_PROFILE_TITLE")
supportUrl = os.Getenv("XUI_SUB_SUPPORT_URL")
if supportUrl == "" {
supportUrl = os.Getenv("XUI_SUB_DOMAIN")
}
@ -144,7 +144,7 @@ func (a *SUBController) subJsons(c *gin.Context) {
profileTitle = subId
}
var supportUrl string
supportUrl = os.Getenv("XUI_SUB_PROFILE_TITLE")
supportUrl = os.Getenv("XUI_SUB_SUPPORT_URL")
if supportUrl == "" {
supportUrl = os.Getenv("XUI_SUB_DOMAIN")
}