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:
authorHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-04-21 00:44:00 +0300
committerHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-04-21 00:44:00 +0300
commit81838b504c0f445f9a0daff32a394bd0a149922b (patch)
tree3c528c1a5a98a32b74bd011a08a0d9c309d11716
parent641a7d3e57d690f14c0798b98a5df14055e3be01 (diff)
update iran.dat from xray zip
-rw-r--r--web/service/server.go4
-rw-r--r--xray/process.go4
2 files changed, 8 insertions, 0 deletions
diff --git a/web/service/server.go b/web/service/server.go
index f2540252..1108926b 100644
--- a/web/service/server.go
+++ b/web/service/server.go
@@ -323,6 +323,10 @@ func (s *ServerService) UpdateXray(version string) error {
if err != nil {
return err
}
+ err = copyZipFile("iran.dat", xray.GetIranPath())
+ if err != nil {
+ return err
+ }
return nil
diff --git a/xray/process.go b/xray/process.go
index 35907391..e7774ea4 100644
--- a/xray/process.go
+++ b/xray/process.go
@@ -45,6 +45,10 @@ func GetGeoipPath() string {
return config.GetBinFolderPath() + "/geoip.dat"
}
+func GetIranPath() string {
+ return config.GetBinFolderPath() + "/iran.dat"
+}
+
func GetBlockedIPsPath() string {
return config.GetBinFolderPath() + "/blockedIPs"
}