Commit 5c448ba
committed
case-sensitivity mismatch in geoipchecker.go
1. GeoIPCheckerFor stored country codes as-is (e.g., "CZ")
2. Check lowercased the lookup result before comparing (strings.ToLower(ipInfo.GetCountryCode()))
So "CZ" in config never matched "cz" from the gRPC response.1 parent 982394c commit 5c448ba
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments