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" }