From fdc1124ea495aafbb5096b0333e8ceff6aaa53f8 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sat, 3 Jun 2023 18:59:32 +0330 Subject: some changes ip limit method back to v1.6.0 method remove event on getDBClientIps better show ip on log (",\n") --- xray/process.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xray') 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() -- cgit v1.2.3