mirror of
https://github.com/SagerNet/sing-geoip.git
synced 2025-02-11 07:22:43 +08:00
Fix code
This commit is contained in:
parent
186135050e
commit
ecd02c178a
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()
|
||||
|
Loading…
Reference in New Issue
Block a user