Repository navigation
Commit b36bb93
committed
refactor(utils): adopt upstream address classification into UrlValidator
During the rebase onto main, fold the improved address classification
from push_url_validator into the composable stack: unwrap IPv4-mapped
IPv6 addresses before checks and use 'not is_global' so RFC 6598
shared address space (100.64.0.0/10) is rejected as well. The
backwards-compatible wrapper stays a thin delegation.
Signed-off-by: andy <linux2011@qq.com>1 parent 0186d70 commit b36bb93
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
56 | 65 | | |
57 | | - | |
| 66 | + | |
58 | 67 | | |
59 | 68 | | |
60 | 69 | | |
| |||
0 commit comments