diff options
| author | somebodywashere <68244480+somebodywashere@users.noreply.github.com> | 2024-03-05 16:39:20 +0300 |
|---|---|---|
| committer | somebodywashere <68244480+somebodywashere@users.noreply.github.com> | 2024-03-05 16:39:20 +0300 |
| commit | 5ba9d6e1186bd03575078b492f1978548662b746 (patch) | |
| tree | 87db80dd12ca8ec7ea5f75bccfd2a75557565fd1 /xray | |
| parent | 6563d23f382526b901947f5166aab14f5e9cfcbe (diff) | |
[IPLimit] Optimize + Debian 12 compability
Diffstat (limited to 'xray')
| -rw-r--r-- | xray/process.go | 6 |
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 { |
