mirror of
https://github.com/SagerNet/sing-geoip.git
synced 2025-02-11 15:32:45 +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
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user