mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 16:04:50 +03:00
fix(geodata): update Iran rules source
Switch Iran geodata downloads, updater references, tests, and README acknowledgments from chocolate4u to FDeghy.
This commit is contained in:
@@ -2474,8 +2474,8 @@ type geofileEntry struct {
|
||||
var geofileAllowlist = map[string]geofileEntry{
|
||||
"geoip.dat": {"https://github.com/Loyalsoldier/v2ray-rules-dat", "geoip.dat", "geoip.dat"},
|
||||
"geosite.dat": {"https://github.com/Loyalsoldier/v2ray-rules-dat", "geosite.dat", "geosite.dat"},
|
||||
"geoip_IR.dat": {"https://github.com/chocolate4u/Iran-v2ray-rules", "geoip.dat", "geoip_IR.dat"},
|
||||
"geosite_IR.dat": {"https://github.com/chocolate4u/Iran-v2ray-rules", "geosite.dat", "geosite_IR.dat"},
|
||||
"geoip_IR.dat": {"https://github.com/FDeghy/Iran-v2ray-rules", "geoip.dat", "geoip_IR.dat"},
|
||||
"geosite_IR.dat": {"https://github.com/FDeghy/Iran-v2ray-rules", "geosite.dat", "geosite_IR.dat"},
|
||||
"geoip_RU.dat": {"https://github.com/runetfreedom/russia-v2ray-rules-dat", "geoip.dat", "geoip_RU.dat"},
|
||||
"geosite_RU.dat": {"https://github.com/runetfreedom/russia-v2ray-rules-dat", "geosite.dat", "geosite_RU.dat"},
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/mhsanaei/3x-ui/v3/internal/database/dbtest"
|
||||
)
|
||||
|
||||
// Loyalsoldier and runetfreedom write "<hash> geoip.dat"; chocolate4u writes
|
||||
// Loyalsoldier and runetfreedom write "<hash> geoip.dat"; FDeghy writes
|
||||
// "<hash> release/geoip.dat", the path from its own build.
|
||||
func TestParseGeofileDigest(t *testing.T) {
|
||||
const digest = "0d5d2ba0c5a5c58027fd1347a6afd57c9470799b6bb3cbc274fd4657ed8de382"
|
||||
@@ -393,10 +393,10 @@ func TestUpdateGeofileRejectsNameOutsideAllowlist(t *testing.T) {
|
||||
func TestStandardGeodataSources(t *testing.T) {
|
||||
want := []GeodataSource{
|
||||
{URL: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat", File: "geoip.dat"},
|
||||
{URL: "https://github.com/chocolate4u/Iran-v2ray-rules/releases/latest/download/geoip.dat", File: "geoip_IR.dat"},
|
||||
{URL: "https://github.com/FDeghy/Iran-v2ray-rules/releases/latest/download/geoip.dat", File: "geoip_IR.dat"},
|
||||
{URL: "https://github.com/runetfreedom/russia-v2ray-rules-dat/releases/latest/download/geoip.dat", File: "geoip_RU.dat"},
|
||||
{URL: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat", File: "geosite.dat"},
|
||||
{URL: "https://github.com/chocolate4u/Iran-v2ray-rules/releases/latest/download/geosite.dat", File: "geosite_IR.dat"},
|
||||
{URL: "https://github.com/FDeghy/Iran-v2ray-rules/releases/latest/download/geosite.dat", File: "geosite_IR.dat"},
|
||||
{URL: "https://github.com/runetfreedom/russia-v2ray-rules-dat/releases/latest/download/geosite.dat", File: "geosite_RU.dat"},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user