Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xray
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-06-03 18:29:32 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-06-03 18:29:32 +0300
commitfdc1124ea495aafbb5096b0333e8ceff6aaa53f8 (patch)
tree990344071070d6d8b57d9989e862f84cbbc25d94 /xray
parent33a598366be966ded4e0b41bbe19fd566552eec3 (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')
-rw-r--r--xray/process.go6
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()