Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHamidreza <70919649+hamid-gh98@users.noreply.github.com>2023-07-01 15:26:43 +0300
committerGitHub <noreply@github.com>2023-07-01 15:26:43 +0300
commit10283193862e7bd36b20e6b2c41411d251961c27 (patch)
tree892d133611c08e01db4b372645d8bcf579635739 /config
parentf726474a5db3fa68eeb78729a58629382f6d2699 (diff)
🚀 Some improvements for x-ui.sh and ip job (#665)
Diffstat (limited to 'config')
-rw-r--r--config/config.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index 30f0ca81..70be5ae6 100644
--- a/config/config.go
+++ b/config/config.go
@@ -65,3 +65,11 @@ func GetDBFolderPath() string {
func GetDBPath() string {
return fmt.Sprintf("%s/%s.db", GetDBFolderPath(), GetName())
}
+
+func GetLogFolder() string {
+ logFolderPath := os.Getenv("XUI_LOG_FOLDER")
+ if logFolderPath == "" {
+ logFolderPath = "/var/log"
+ }
+ return logFolderPath
+}