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
2023-08-08 22:21:02 +03:30
committed by GitHub
parent 22cf278ce2
commit 24eb36715a
2 changed files with 43 additions and 10 deletions

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