0.2.6-dev: the maintainer's decisions of 2026-10-12 — the 玩法说明 pages' WebP copies are lossy at quality 90 (25.6 MB of PNG → 4.2 MB; lossless stays a GUIDE_WEBP_MODE away) and /healthz?traffic=1 answers the counters to a loopback or private-network client only (a public visitor, also one a local tunnel or proxy forwards, gets the plain report; TRUST_PROXY applies as for the WebSocket limits); golden: unchanged

This commit is contained in:
sganggs committed 2026-10-12 19:09:54 +08:00
1 parent 35f4895219
commit 79bb26b317
10 files changed
+71 -26

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ export async function startServer(opts = {}) {
buildTag();
const traffic = createTrafficCounter();
const server = http.createServer(createRequestHandler({ serveStatic, health: { startedAt, network, registry, lobby, traffic, assetIndex, views }, log }));
const server = http.createServer(createRequestHandler({ serveStatic, health: { startedAt, network, registry, lobby, traffic, assetIndex, views }, log, trustProxy: network.opts.trustProxy }));
server.on('clientError', answerClientError);
const wss = attachWebSocket(server, { network, log, traffic });