Repository navigation
Commit 04a15bf
fix(shared): expanded IPv4-mapped loopback spellings count as loopback
isLocalLoopbackHost only matched the compressed ::ffff: prefix, so
equivalent spellings such as 0:0:0:0:0:ffff:7f00:1 returned false for
callers that pass raw host strings. Parse the literal as a full IPv6
address (a canonical dotted tail becomes two hextets) and check the
::ffff:127.0.0.0/104 prefix.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent e5736f9 commit 04a15bf
2 files changed
Lines changed: 13 additions & 5 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| |||
0 commit comments