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 17:38:47 +0300
committerGitHub <noreply@github.com>2024-03-05 17:38:47 +0300
commit2f594ca7c949480af2860d70a6cf475bde486223 (patch)
treeee1ac7c6ec09e0ef34ab63367da7cb1210ca4aaf /xray
parentc47a67975f5fd4de81c6fc9e9dac12a3e3cdbbaf (diff)
parentecae6e5ead96bc00cbba819331014e13a84392fe (diff)
[IPLimit] Optimize + Debian 12 compability
[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 {