mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-03-01 01:20:49 +03:00
update iran.dat from xray zip
This commit is contained in:
parent
641a7d3e57
commit
81838b504c
@ -323,6 +323,10 @@ func (s *ServerService) UpdateXray(version string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
err = copyZipFile("iran.dat", xray.GetIranPath())
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
|
@ -45,6 +45,10 @@ func GetGeoipPath() string {
|
|||||||
return config.GetBinFolderPath() + "/geoip.dat"
|
return config.GetBinFolderPath() + "/geoip.dat"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetIranPath() string {
|
||||||
|
return config.GetBinFolderPath() + "/iran.dat"
|
||||||
|
}
|
||||||
|
|
||||||
func GetBlockedIPsPath() string {
|
func GetBlockedIPsPath() string {
|
||||||
return config.GetBinFolderPath() + "/blockedIPs"
|
return config.GetBinFolderPath() + "/blockedIPs"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user