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
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-07-27 10:36:27 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-07-27 10:36:27 +0300
commitc2b1fb485534ad1c0be5a3ba65761751526d29e5 (patch)
treead4f3291262d06d459e932430d8ad1b0b08a7c5e /xray/process.go
parent09807b39aa971ce2f4ea3fc84a4e54766d08fefd (diff)
because of #815 now we can use XTLS/Xray-core
change MHSanaei/Xray-core to XTLS/Xray-core
Diffstat (limited to 'xray/process.go')
-rw-r--r--xray/process.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/xray/process.go b/xray/process.go
index 0882c716..9bccffd9 100644
--- a/xray/process.go
+++ b/xray/process.go
@@ -40,14 +40,6 @@ func GetGeoipPath() string {
return config.GetBinFolderPath() + "/geoip.dat"
}
-func GetIranPath() string {
- return config.GetBinFolderPath() + "/iran.dat"
-}
-
-func GetBlockedIPsPath() string {
- return config.GetBinFolderPath() + "/BlockedIps"
-}
-
func GetIPLimitLogPath() string {
return config.GetLogFolder() + "/3xipl.log"
}
@@ -88,7 +80,6 @@ func stopProcess(p *Process) {
p.Stop()
}
-
type Process struct {
*process
}
@@ -203,7 +194,7 @@ func (p *process) Start() (err error) {
return common.NewErrorf("Failed to write configuration file: %v", err)
}
- cmd := exec.Command(GetBinaryPath(), "-c", configPath, "-restrictedIPsPath", GetBlockedIPsPath())
+ cmd := exec.Command(GetBinaryPath(), "-c", configPath)
p.cmd = cmd
stdReader, err := cmd.StdoutPipe()