Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #29 from hossinasaadi/limit-connection
Browse files Browse the repository at this point in the history
add restrictedIPsPath arg to xray start command
  • Loading branch information
hossinasaadi authored Nov 8, 2022
2 parents 6a08d75 + 2d063a7 commit e3cc1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xray/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e3cc1f7

Please sign in to comment.