mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-08-01 16:43:37 +08:00
Strip brackets from hostname returned by new URL() for IPv6 literals like [::1]. Previously the check compared against '::1' (unbracketed) but new URL() returns '[::1]' (bracketed), allowing the SSRF block to be bypassed. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>