diff options
| author | Hamidreza <70919649+hamid-gh98@users.noreply.github.com> | 2023-08-08 21:51:02 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-08 21:51:02 +0300 |
| commit | 24eb36715ad701980b19d8bb7373d0f1eeec153b (patch) | |
| tree | db8da5d888688b894485919981b743e91f28e138 /xray | |
| parent | 22cf278ce21c3e56bbf6876586affee5971f25c1 (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.go | 5 |
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" } |
