Commit b992148
committed
test(origin_guard): cover bracketed IPv6 host matching (#421)
Closes the one patch-coverage gap codecov flagged: the bracketed-IPv6 Host
unwrap in _host_ip_in_networks was only exercised by IPv4 hosts. Add a test
matching [fd00::1] against an IPv6 CIDR (in-range allowed, out-of-range
rejected).
https://claude.ai/code/session_01Jq5X4ivngAf1N6r5UX2BVw1 parent a898f93 commit b992148
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
504 | 513 | | |
505 | 514 | | |
506 | 515 | | |
| |||
0 commit comments