Skip to content

Commit ecd02c1

Browse files
committed
Fix code
1 parent 1861350 commit ecd02c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func parse(binary []byte) (metadata maxminddb.Metadata, countryMap map[string][]
9292
return
9393
}
9494
// idk why
95-
code := country.RegisteredCountry.IsoCode
95+
code := strings.ToLower(country.RegisteredCountry.IsoCode)
9696
countryMap[code] = append(countryMap[code], ipNet)
9797
}
9898
err = networks.Err()

0 commit comments

Comments
 (0)