mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-17 12:44:41 +03:00
zh to en
This commit is contained in:
@@ -154,12 +154,12 @@ func (p *process) Start() (err error) {
|
|||||||
|
|
||||||
data, err := json.MarshalIndent(p.config, "", " ")
|
data, err := json.MarshalIndent(p.config, "", " ")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return common.NewErrorf("生成 xray 配置文件失败: %v", err)
|
return common.NewErrorf("Failed to generate xray configuration file: %v", err)
|
||||||
}
|
}
|
||||||
configPath := GetConfigPath()
|
configPath := GetConfigPath()
|
||||||
err = os.WriteFile(configPath, data, fs.ModePerm)
|
err = os.WriteFile(configPath, data, fs.ModePerm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return common.NewErrorf("写入配置文件失败: %v", err)
|
return common.NewErrorf("Failed to write configuration file: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := exec.Command(GetBinaryPath(), "-c", configPath)
|
cmd := exec.Command(GetBinaryPath(), "-c", configPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user