Add iran.dat when updating xray (#870)

we can download iran.dat, because it's one of the required files in our settings
This commit is contained in:
Hamidreza authored and GitHub committed 2023-08-08 22:21:02 +03:30
1 parent 22cf278ce2
commit 24eb36715a
2 files changed
+43 -10

No files matched your search

+5
View File
@@ -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"
}