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/xray
diff options
context:
space:
mode:
authorsomebodywashere <68244480+somebodywashere@users.noreply.github.com>2024-03-05 16:39:20 +0300
committersomebodywashere <68244480+somebodywashere@users.noreply.github.com>2024-03-05 16:39:20 +0300
commit5ba9d6e1186bd03575078b492f1978548662b746 (patch)
tree87db80dd12ca8ec7ea5f75bccfd2a75557565fd1 /xray
parent6563d23f382526b901947f5166aab14f5e9cfcbe (diff)
[IPLimit] Optimize + Debian 12 compability
Diffstat (limited to 'xray')
-rw-r--r--xray/process.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/xray/process.go b/xray/process.go
index e37a0649..03d2eced 100644
--- a/xray/process.go
+++ b/xray/process.go
@@ -202,6 +202,12 @@ func (p *process) Start() (err error) {
if err != nil {
return common.NewErrorf("Failed to generate xray configuration file: %v", err)
}
+
+ err = os.MkdirAll(config.GetLogFolder(), 0770)
+ if err != nil {
+ logger.Warningf("Something went wrong: %s", err)
+ }
+
configPath := GetConfigPath()
err = os.WriteFile(configPath, data, fs.ModePerm)
if err != nil {