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
diff options
context:
space:
mode:
authorHo3ein <ho3ein.sanaei@gmail.com>2023-04-14 04:58:03 +0300
committerGitHub <noreply@github.com>2023-04-14 04:58:03 +0300
commitb70ecc12b3870fe7ed77242b77369008de4b5441 (patch)
treed93f5233a3ee0514cfece964c68d28afe30ebbac /main.go
parent0c047cf1245411394d77c3d7880bfc7466716856 (diff)
parent4f952963aea1c51c65cc8419abda31e2bfd8f5ea (diff)
Merge pull request #261 from hamid-gh98/main
Support set db and bin folder path from env
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index d857ab46..0d6e0f90 100644
--- a/main.go
+++ b/main.go
@@ -217,7 +217,7 @@ func main() {
v2uiCmd := flag.NewFlagSet("v2-ui", flag.ExitOnError)
var dbPath string
- v2uiCmd.StringVar(&dbPath, "db", "/etc/v2-ui/v2-ui.db", "set v2-ui db file path")
+ v2uiCmd.StringVar(&dbPath, "db", fmt.Sprintf("%s/v2-ui.db", config.GetDBFolderPath()), "set v2-ui db file path")
settingCmd := flag.NewFlagSet("setting", flag.ExitOnError)
var port int