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:
authorHamidreza <70919649+hamid-gh98@users.noreply.github.com>2023-08-08 21:51:02 +0300
committerGitHub <noreply@github.com>2023-08-08 21:51:02 +0300
commit24eb36715ad701980b19d8bb7373d0f1eeec153b (patch)
treedb8da5d888688b894485919981b743e91f28e138 /xray
parent22cf278ce21c3e56bbf6876586affee5971f25c1 (diff)
Add iran.dat when updating xray (#870)
we can download iran.dat, because it's one of the required files in our settings
Diffstat (limited to 'xray')
-rw-r--r--xray/process.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/xray/process.go b/xray/process.go
index 9bccffd9..b860360f 100644
--- a/xray/process.go
+++ b/xray/process.go
@@ -13,6 +13,7 @@ import (
"strings"
"sync"
"syscall"
+
"x-ui/config"
"x-ui/logger"
"x-ui/util/common"
@@ -40,6 +41,10 @@ func GetGeoipPath() string {
return config.GetBinFolderPath() + "/geoip.dat"
}
+func GetIranPath() string {
+ return config.GetBinFolderPath() + "/iran.dat"
+}
+
func GetIPLimitLogPath() string {
return config.GetLogFolder() + "/3xipl.log"
}