add restrictedIPsPath arg to xray

This commit is contained in:
Hossin Asaadi
2022-11-08 10:54:17 -05:00
parent 904ae3c0e3
commit 2d063a79fb

View File

@@ -161,7 +161,7 @@ func (p *process) Start() (err error) {
return common.NewErrorf("写入配置文件失败: %v", err)
}
cmd := exec.Command(GetBinaryPath(), "-c", configPath)
cmd := exec.Command(GetBinaryPath(), "-c", configPath, "-restrictedIPsPath", "./bin/blockedIPs")
p.cmd = cmd
stdReader, err := cmd.StdoutPipe()