From 24eb36715ad701980b19d8bb7373d0f1eeec153b Mon Sep 17 00:00:00 2001 From: Hamidreza <70919649+hamid-gh98@users.noreply.github.com> Date: Tue, 8 Aug 2023 22:21:02 +0330 Subject: Add iran.dat when updating xray (#870) we can download iran.dat, because it's one of the required files in our settings --- xray/process.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xray') 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" } -- cgit v1.2.3