mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
H5 access can preserve a manually selected private LAN host, but the desktop sidecar binds a fresh dynamic port on restart. Refresh plain HTTP private-LAN URLs to the current auto-discovered port while leaving reverse proxy URLs intact. Constraint: Desktop sidecar ports are dynamic across app launches. Rejected: Preserve the complete private-LAN URL unchanged | this keeps stale ports like 5179 in QR links after restart. Confidence: high Scope-risk: narrow Directive: Do not treat plain private-LAN H5 URLs as reverse proxy URLs unless they carry a custom scheme or path. Tested: bun test src/server/__tests__/h5-access-service.test.ts Tested: bun test src/server/__tests__/h5-access-api.test.ts src/server/__tests__/h5-access-auth.test.ts src/server/__tests__/h5-access-policy.test.ts Tested: bun run check:server Tested: manual smoke with stored :5179 returning the active :45679 publicBaseUrl Not-tested: Real phone scan against a packaged desktop build after reinstall.