From 5ba9d6e1186bd03575078b492f1978548662b746 Mon Sep 17 00:00:00 2001 From: somebodywashere <68244480+somebodywashere@users.noreply.github.com> Date: Tue, 5 Mar 2024 16:39:20 +0300 Subject: [IPLimit] Optimize + Debian 12 compability --- xray/process.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xray/process.go') 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 { -- cgit v1.2.3