Commit 75e38f3
committed
Fix wrong impl failing IPv4-in-IPv6 when IPv4-mapped IPv6 is missing
---
Fix wrong root in MMDB tree parser, which failed IPv4 lookups in IPv6
databases that don't include IPv4-mapped IPv6 addresses.
A bug that was part of locus since forever but didn't show up in MaxMind
databases since those appear to always include the IPv4-mapped IPv6
addresses node.
Thanks to https://github.com/nickjacob who left me the clues I needed in
an earlier closed PR:
* #391 parent b83d0cc commit 75e38f3
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
0 commit comments