This commit is contained in:
世界 2024-10-10 01:13:05 +08:00
parent 186135050e
commit ecd02c178a
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -92,7 +92,7 @@ func parse(binary []byte) (metadata maxminddb.Metadata, countryMap map[string][]
return return
} }
// idk why // idk why
code := country.RegisteredCountry.IsoCode code := strings.ToLower(country.RegisteredCountry.IsoCode)
countryMap[code] = append(countryMap[code], ipNet) countryMap[code] = append(countryMap[code], ipNet)
} }
err = networks.Err() err = networks.Err()