mirror of
https://github.com/SagerNet/sing-geoip.git
synced 2025-12-15 05:43:14 +08:00
Fix code
This commit is contained in:
2
main.go
2
main.go
@@ -92,7 +92,7 @@ func parse(binary []byte) (metadata maxminddb.Metadata, countryMap map[string][]
|
||||
return
|
||||
}
|
||||
// idk why
|
||||
code := country.RegisteredCountry.IsoCode
|
||||
code := strings.ToLower(country.RegisteredCountry.IsoCode)
|
||||
countryMap[code] = append(countryMap[code], ipNet)
|
||||
}
|
||||
err = networks.Err()
|
||||
|
||||
Reference in New Issue
Block a user