mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-30 18:15:45 +02:00
Proxies from HTTP_PROXY/HTTPS_PROXY hide the resolved destination address
from the dial-time validation added in d6e6f9e50, so ignore them unless the
new security.http.proxyFromEnvironment (default false) is enabled. When
enabled, the address check is skipped only for the proxy addresses handed
out by the proxy func; direct dials (e.g. NO_PROXY) are still validated.
Also document that the resolved address validation only applies under the
default security.http.urls allowlist.
Thanks to @Reload3d for reporting these issues.
Closes #15301
Closes #15302
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>