Skip to content

v3.0.0-beta.4

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Nov 00:51
· 1 commit to master since this release
v3.0.0-beta.4
7fa4821

This beta adds an option to keep the default :: host IPv6-only, alongside CORS, HTTPS redirect shutdown and macOS file name fixes. It also includes a security fix. The related advisory will be published separately soon.

Security

  • Proxy header logging hardening. Hardened how the client address is read from the X-Forwarded-For and X-Real-IP headers for --trusted-proxies. Details will follow with the related advisory.

Added

  • IPv6-only default host. Added --ipv6-only to bind the :: host with IPV6_V6ONLY for the main and HTTPS redirect listeners, with environment variable and TOML support. The default false keeps the dual-stack behavior. Startup fails if the OS refuses it, or when it is combined with an IPv4 host, --fd or --unix-socket. (#829 by @joseluisq)

Changed

  • Module dependency cleanup. Moved the request handler options and directory listing formats below the feature modules, so the handler and the modules it calls no longer depend on each other. (#823 by @jaads)

Fixed

  • Vary header with CORS. With --cors-allow-origins, Origin is now appended to an existing Vary header instead of replacing it, so automatic directory listings keep Vary: Accept and shared caches no longer mix up HTML and JSON listings. (#813 by @SAY-5)
  • HTTPS redirect shutdown on cancel. Stopping SWS through a cancel signal, such as a Windows service stop, now also stops the --https-redirect listener. (#820 by @joseluisq)
  • Tilde names in another Unicode form on macOS. Files with a ~ in their name, such as café~.txt, no longer return 404 when requested in another Unicode normalization form on APFS, HFS+ and FAT volumes. (#828 by @joseluisq)
  • Flaky tests. Fixed timing-dependent failures in the idle timeout, connection limit and log capture tests, and checked that shutdown doesn't restart the idle timeout. (#819, #825, #826, #827 by @joseluisq)

For more details see the v3.0.0-beta.4 milestone and the full changelog v3.0.0-beta.3...v3.0.0-beta.4.