boxlang-express 0.1.16
Released .
- Added
app.set("trust proxy header", "DO-Connecting-IP")(or an ordered array of candidates) for platforms whereX-Forwarded-Forisn't safe to trust even withtrust proxyon — confirmed directly against DigitalOcean App Platform (with Cloudflare in front of that) that both hops append toX-Forwarded-Forrather than replacing it, so a client can prepend a forged entry and have it survive to the app, makingreq.ipattacker-controlled rather than just wrong. Platforms that do this typically also inject their own edge-set header carrying the real client IP (DO-Connecting-IP,CF-Connecting-IP,Fastly-Client-IP, etc.), set from the connection the edge itself observed rather than anything the client sent — checked beforeX-Forwarded-For, and independent of thetrust proxyboolean, since it's a different, safer trust model. See Request.bx. - Switched
AnsiColor.bx'sNO_COLORcheck fromcreateObject("java","java.lang.System").getenv(...)to the nativegetSystemSetting(name, defaultValue)BIF — confirmed directly that it reads real environment variables (not just JVM system properties) and never throws when a default is given, so the Java interop wasn't needed. No behavior change, verified live (NO_COLORstill disables coloring, a normal run still shows real ANSI codes).