mirror of
https://github.com/whit3rabbit/anyllm-proxy.git
synced 2026-09-24 16:00:53 +00:00
The IPv6 arm of is_private_ip only checked loopback, unspecified, and IPv4-mapped addresses. Unique Local Addresses and link-local addresses were not blocked, allowing SSRF via URLs like http://[fc00::1]/v1. Uses bitwise checks since Ipv6Addr::is_unique_local() is unstable. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>