style: fix rustfmt formatting in SSRF tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
dd74e29f71
commit
91ae151548
1 changed files with 8 additions and 3 deletions
|
|
@ -630,7 +630,12 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn allows_public_ipv6() {
|
||||
assert!(!is_private_or_local_host("2001:db8::1").to_string().is_empty() || true);
|
||||
assert!(
|
||||
!is_private_or_local_host("2001:db8::1")
|
||||
.to_string()
|
||||
.is_empty()
|
||||
|| true
|
||||
);
|
||||
// 2001:db8::/32 is documentation range for IPv6 but not currently blocked
|
||||
// since it's not practically exploitable. Public IPv6 addresses pass:
|
||||
assert!(!is_private_or_local_host("2607:f8b0:4004:800::200e"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue