Repository navigation
v0.1.5
Reverse-proxy mode, blackout lever, train-wifi profile.
Added
- Reverse-proxy mode. A single upstream via
--target http://host:port, or several via repeatable--route PORT=URL. Pick the mode from the flags:--target/--route→ reverse, otherwise forward (as in 0.1). - Listen-port convention for reverse mode: prefix the upstream port with
1(3000 → 13000,5173 → 15173,8080 → 18080). Falls back to a free random port — with a clear log line — when the derived port is out of range, taken, or duplicated across routes. blackoutlever. Periodic windows where the proxy stops forwarding: existing connections are torn down, new requests get504 Gateway Timeout(still after the profile's latency, so the blackout feels like a real stall). Configurable as{ everySeconds, durationSeconds }.train-wifiprofile: 500ms ± 400ms latency, 2% drop, 4s blackout every 60s.--port autoas an explicit shortcut for the single-target reverse mode (same as omitting--port).
Changed
- The
501message emitted onCONNECTnow points at reverse-proxy mode as the near-term workaround instead of just deferring to v0.2.
Known limits
- Still HTTP only. HTTPS (and the
trustsubcommand) remains scheduled for v0.2. - No external YAML config, admin API, UI, bandwidth throttling, or failure injection yet.
Install: npm i -g flapwire@0.1.5