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:
Sanaei
2026-12-03 10:51:47 +03:30
parent 52f5fb5205
commit d107effd3c
13 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -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"},
}
+3 -3
View File
@@ -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"},
}