diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-06-03 18:29:32 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-06-03 18:29:32 +0300 |
| commit | fdc1124ea495aafbb5096b0333e8ceff6aaa53f8 (patch) | |
| tree | 990344071070d6d8b57d9989e862f84cbbc25d94 /xray/process.go | |
| parent | 33a598366be966ded4e0b41bbe19fd566552eec3 (diff) | |
some changes
ip limit method back to v1.6.0 method
remove event on getDBClientIps
better show ip on log (",\n")
Diffstat (limited to 'xray/process.go')
| -rw-r--r-- | xray/process.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xray/process.go b/xray/process.go index 41742f3a..d0117324 100644 --- a/xray/process.go +++ b/xray/process.go @@ -51,8 +51,8 @@ func GetIranPath() string { return config.GetBinFolderPath() + "/iran.dat" } -func GetAllowedIPsPath() string { - return config.GetBinFolderPath() + "/AllowedIPs" +func GetBlockedIPsPath() string { + return config.GetBinFolderPath() + "/BlockedIps" } func stopProcess(p *Process) { @@ -173,7 +173,7 @@ func (p *process) Start() (err error) { return common.NewErrorf("Failed to write configuration file: %v", err) } - cmd := exec.Command(GetBinaryPath(), "-c", configPath, "-restrictedIPsPath", GetAllowedIPsPath()) + cmd := exec.Command(GetBinaryPath(), "-c", configPath, "-restrictedIPsPath", GetBlockedIPsPath()) p.cmd = cmd stdReader, err := cmd.StdoutPipe() |
